Interface TaxonService
- All Superinterfaces:
BaseImmutableService<Taxon>,BaseReadOnlyService<Taxon>,BaseVoEnabledService<Taxon,,TaxonValueObject> FilteringService<Taxon>,FilteringVoEnabledService<Taxon,TaxonValueObject>
- All Known Implementing Classes:
TaxonServiceImpl
public interface TaxonService
extends BaseImmutableService<Taxon>, FilteringVoEnabledService<Taxon,TaxonValueObject>
- Author:
- kelsey
-
Method Summary
Modifier and TypeMethodDescriptionfindByCommonName(String commonName) findByNcbiId(Integer ncbiId) findByScientificName(String scientificName) findOrCreate(Taxon taxon) Does a search for the entity in the persistent storage, and if not found, creates it.voidRemoves the entity with given ID from the persistent storage.voidremove(Collection<Taxon> entities) Removes all the given entities from persistent storage.voidRemoves the given entity from the persistent storage.voidupdateGenesUsable(Taxon taxon, boolean isGenesUsable) Methods inherited from interface ubic.gemma.persistence.service.BaseImmutableService
create, createMethods 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
-
findByCommonName
-
findByScientificName
-
findByNcbiId
-
findOrCreate
Description copied from interface:BaseImmutableServiceDoes a search for the entity in the persistent storage, and if not found, creates it.- Specified by:
findOrCreatein interfaceBaseImmutableService<Taxon>- Parameters:
taxon- the entity to look for, and create if not found.- Returns:
- the entity retrieved from the persistent storage, either found or created.
-
remove
Description copied from interface:BaseImmutableServiceRemoves all the given entities from persistent storage.- Specified by:
removein interfaceBaseImmutableService<Taxon>- Parameters:
entities- the entities to be removed.
-
remove
Description copied from interface:BaseImmutableServiceRemoves the entity with given ID from the persistent storage.- Specified by:
removein interfaceBaseImmutableService<Taxon>- Parameters:
id- the ID of entity to be removed.
-
remove
Description copied from interface:BaseImmutableServiceRemoves the given entity from the persistent storage.- Specified by:
removein interfaceBaseImmutableService<Taxon>- Parameters:
taxon- the entity to be removed.
-
loadAllTaxaWithGenes
Collection<Taxon> loadAllTaxaWithGenes()- Returns:
- Taxon that have genes loaded into Gemma and that should be used
-
getTaxaWithGenes
Collection<TaxonValueObject> getTaxaWithGenes()- Returns:
- Taxon that have genes loaded into Gemma and that should be used
-
getTaxaWithDatasets
Collection<TaxonValueObject> getTaxaWithDatasets()- Returns:
- collection of taxa that have expression experiments available.
-
getTaxaWithArrays
Collection<TaxonValueObject> getTaxaWithArrays()- Returns:
- List of taxa with array designs in gemma
-
updateGenesUsable
-