Interface CharacteristicService
- All Superinterfaces:
BaseImmutableService<Characteristic>,BaseReadOnlyService<Characteristic>,BaseService<Characteristic>,BaseVoEnabledService<Characteristic,,CharacteristicValueObject> FilteringService<Characteristic>,FilteringVoEnabledService<Characteristic,CharacteristicValueObject>
- All Known Implementing Classes:
CharacteristicServiceImpl
public interface CharacteristicService
extends BaseService<Characteristic>, FilteringVoEnabledService<Characteristic,CharacteristicValueObject>
- Author:
- paul
-
Method Summary
Modifier and TypeMethodDescriptionbrowse(int start, int limit) Browse through the characteristics, excluding GO annotations.Browse through the characteristics, excluding GO annotations.countByValueUri(Collection<String> uris, Collection<Class<? extends Identifiable>> parentClasses, boolean includeNoParents) create(Collection<Characteristic> entities) findBestByUri(String uri) Find the best possible characteristic for a given URI.Collection<? extends Characteristic> findByAnyUri(String uri) Find a characteristic or statement by any URI it contains including its category, value, predicates and objects.Collection<? extends Characteristic> findByAnyValue(String value) Find a characteristic by any value it contains including its category, value, predicates and objects.Collection<? extends Characteristic> findByAnyValueStartingWith(String value) Find a characteristic by any value it contains including its category, value, predicates and objects that starts with the given query.findByCategoryStartingWith(String queryPrefix, Collection<Class<? extends Identifiable>> parentClasses, boolean includeNoParents, int maxResults) findByCategoryUri(String query, Collection<Class<? extends Identifiable>> parentClasses, boolean includeNoParents, int maxResults) findByObject(String value) findByObjectUri(String uri) findByParentClasses(Collection<Class<? extends Identifiable>> parentClasses, boolean includeNoParents, String category, int maxResults) Find characteristics that have a particular parent class or lack thereof.findByPredicate(String value) findByPredicateUri(String uri) findByUri(String uri, String category, Collection<Class<? extends Identifiable>> parentClasses, boolean includeNoParents, int maxResults) Looks for an exact match of the give string to a valueUri in the characteristic databasefindByValueLike(String search, String category, Collection<Class<? extends Identifiable>> parentClasses, boolean includeNoParents, int maxResults) Returns a collection of characteristics that have a value matching the given SQLLIKEpattern.findByValueStartingWith(String search, String category, Collection<Class<? extends Identifiable>> parentClasses, boolean includeNoParents, int maxResults) Returns a collection of characteristics that have a value starting with the given string.findByValueUriOrValueStartingWith(String search, Collection<Class<? extends Identifiable>> parentClasses, boolean includeNoParents) Find characteristics that have a value (prefix) or value URI (exact match) matching the given string.Map<Class<? extends Identifiable>, Map<String, Set<ExpressionExperiment>>> findExperimentsByUris(Collection<String> uris, boolean includeSubjects, boolean includePredicates, boolean includeObjects, Taxon taxon, int limit, boolean loadEEs, boolean rankByLevel) findValueGroupedByValueUri(Collection<Class<? extends Identifiable>> parentClasses, boolean includeNoParents, boolean includePredicates, boolean includeObjects, int maxResults) getParents(Collection<Characteristic> characteristics, Collection<Class<? extends Identifiable>> parentClasses, boolean includeNoParents, boolean thawParents) voidremove(Collection<Characteristic> entities) voidsave(Collection<Characteristic> entities) save(Characteristic entity) voidupdate(Collection<Characteristic> entities) voidupdate(Characteristic entity) Methods inherited from interface ubic.gemma.persistence.service.BaseImmutableService
findOrCreateMethods inherited from interface ubic.gemma.persistence.service.BaseReadOnlyService
countAll, find, findOrFail, getElementClass, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail, loadOrFail, loadOrFail, streamAll, streamAllMethods inherited from interface ubic.gemma.persistence.service.BaseVoEnabledService
loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIdsMethods inherited from interface ubic.gemma.persistence.service.FilteringService
count, getFilter, getFilter, getFilter, getFilter, getFilter, getFilter, getFilterableProperties, getFilterablePropertyAllowedValues, getFilterablePropertyConfigAttributes, getFilterablePropertyDescription, getFilterablePropertyResolvableAllowedValuesLabels, getFilterablePropertyType, getSort, isFilterablePropertyDeprecated, isFilterablePropertyUsingSubquery, load, load, loadIdsMethods inherited from interface ubic.gemma.persistence.service.FilteringVoEnabledService
loadValueObjects, loadValueObjects
-
Method Details
-
browse
Browse through the characteristics, excluding GO annotations.- Parameters:
start- How far into the list to startlimit- Maximum records to retrieve- Returns:
- characteristics
-
browse
Browse through the characteristics, excluding GO annotations.- Parameters:
start- How far into the list to startlimit- Maximum records to retrievesortField- sort fielddescending- sor order- Returns:
- characteristics
-
findExperimentsByUris
Map<Class<? extends Identifiable>,Map<String, findExperimentsByUrisSet<ExpressionExperiment>>> (Collection<String> uris, boolean includeSubjects, boolean includePredicates, boolean includeObjects, @Nullable Taxon taxon, int limit, boolean loadEEs, boolean rankByLevel) - See Also:
-
findByParentClasses
Collection<Characteristic> findByParentClasses(@Nullable Collection<Class<? extends Identifiable>> parentClasses, boolean includeNoParents, @Nullable String category, int maxResults) Find characteristics that have a particular parent class or lack thereof.- Throws:
IllegalArgumentException- if parentClasses is
-
findByUri
Collection<Characteristic> findByUri(String uri, @Nullable String category, @Nullable Collection<Class<? extends Identifiable>> parentClasses, boolean includeNoParents, int maxResults) Looks for an exact match of the give string to a valueUri in the characteristic database -
findBestByUri
Find the best possible characteristic for a given URI. -
findByValueStartingWith
Collection<Characteristic> findByValueStartingWith(String search, @Nullable String category, @Nullable Collection<Class<? extends Identifiable>> parentClasses, boolean includeNoParents, int maxResults) Returns a collection of characteristics that have a value starting with the given string.The value is usually a human-readable form of the termURI. SQL
LIKEpatterns are escaped. UsefindByValueLike(String, String, Collection, boolean, int)to do wildcard searches instead. -
findByValueLike
Collection<Characteristic> findByValueLike(String search, @Nullable String category, @Nullable Collection<Class<? extends Identifiable>> parentClasses, boolean includeNoParents, int maxResults) Returns a collection of characteristics that have a value matching the given SQLLIKEpattern. -
findByValueUriOrValueStartingWith
Map<String,Characteristic> findByValueUriOrValueStartingWith(String search, @Nullable Collection<Class<? extends Identifiable>> parentClasses, boolean includeNoParents) Find characteristics that have a value (prefix) or value URI (exact match) matching the given string.- Parameters:
parentClasses- if not null, restrict to characteristics that have parents of the given classes.includeNoParents- if true, include characteristics that have no parents.- See Also:
-
countByValueUri
Map<String,Long> countByValueUri(Collection<String> uris, @Nullable Collection<Class<? extends Identifiable>> parentClasses, boolean includeNoParents) -
findValueGroupedByValueUri
Map<String,String> findValueGroupedByValueUri(@Nullable Collection<Class<? extends Identifiable>> parentClasses, boolean includeNoParents, boolean includePredicates, boolean includeObjects, int maxResults) - See Also:
-
getParents
@Secured("GROUP_ADMIN") Map<Characteristic,Identifiable> getParents(Collection<Characteristic> characteristics, @Nullable Collection<Class<? extends Identifiable>> parentClasses, boolean includeNoParents, boolean thawParents) - Parameters:
thawParents- if true, the parents will be initialized if they are proxies- See Also:
-
findByCategoryStartingWith
Collection<Characteristic> findByCategoryStartingWith(String queryPrefix, @Nullable Collection<Class<? extends Identifiable>> parentClasses, boolean includeNoParents, int maxResults) -
findByCategoryUri
Collection<Characteristic> findByCategoryUri(String query, @Nullable Collection<Class<? extends Identifiable>> parentClasses, boolean includeNoParents, int maxResults) -
findByAnyValue
Find a characteristic by any value it contains including its category, value, predicates and objects. -
findByAnyValueStartingWith
Find a characteristic by any value it contains including its category, value, predicates and objects that starts with the given query. -
findByAnyUri
Find a characteristic or statement by any URI it contains including its category, value, predicates and objects. -
findByPredicate
-
findByPredicateUri
-
findByObject
-
findByObjectUri
-
create
- Specified by:
createin interfaceBaseImmutableService<Characteristic>- See Also:
-
create
- Specified by:
createin interfaceBaseImmutableService<Characteristic>- See Also:
-
save
- Specified by:
savein interfaceBaseService<Characteristic>- See Also:
-
save
- Specified by:
savein interfaceBaseService<Characteristic>- See Also:
-
update
- Specified by:
updatein interfaceBaseService<Characteristic>- See Also:
-
update
- Specified by:
updatein interfaceBaseService<Characteristic>- See Also:
-
remove
- Specified by:
removein interfaceBaseImmutableService<Characteristic>- See Also:
-
remove
- Specified by:
removein interfaceBaseImmutableService<Characteristic>- See Also:
-