Interface GeneProductService
- All Superinterfaces:
BaseImmutableService<GeneProduct>,BaseReadOnlyService<GeneProduct>,BaseService<GeneProduct>,BaseVoEnabledService<GeneProduct,GeneProductValueObject>
- All Known Implementing Classes:
GeneProductServiceImpl
public interface GeneProductService
extends BaseService<GeneProduct>, BaseVoEnabledService<GeneProduct,GeneProductValueObject>
- Author:
- kelsey
-
Method Summary
Modifier and TypeMethodDescriptioncreate(GeneProduct entity) Creates the given entity in the persistent storage.findByName(String name, Taxon taxon) findOrCreate(GeneProduct geneProduct) Does a search for the entity in the persistent storage, and if not found, creates it.getGenesByName(String search) getGenesByNcbiId(String search) voidRemoves the entity with given ID from the persistent storage.voidremove(Collection<GeneProduct> toRemove) Removes all the given entities from persistent storage.voidremove(GeneProduct entity) Removes the given entity from the persistent storage.thaw(GeneProduct geneProduct) voidupdate(Collection<GeneProduct> entities) Updates all entities in the given collection in the persistent storage.voidupdate(GeneProduct entity) Updates the given entity in the persistent storage.Methods inherited from interface ubic.gemma.persistence.service.BaseImmutableService
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.BaseService
save, saveMethods inherited from interface ubic.gemma.persistence.service.BaseVoEnabledService
loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIds
-
Method Details
-
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<GeneProduct>- Parameters:
geneProduct- the entity to look for, and create if not found.- Returns:
- the entity retrieved from the persistent storage, either found or created.
-
create
Description copied from interface:BaseImmutableServiceCreates the given entity in the persistent storage.- Specified by:
createin interfaceBaseImmutableService<GeneProduct>- Parameters:
entity- the entity to be created.- Returns:
- object referencing the persistent instance of the given entity.
-
remove
Description copied from interface:BaseImmutableServiceRemoves all the given entities from persistent storage.- Specified by:
removein interfaceBaseImmutableService<GeneProduct>- Parameters:
toRemove- the entities to be removed.
-
remove
Description copied from interface:BaseImmutableServiceRemoves the entity with given ID from the persistent storage.- Specified by:
removein interfaceBaseImmutableService<GeneProduct>- 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<GeneProduct>- Parameters:
entity- the entity to be removed.
-
update
Description copied from interface:BaseServiceUpdates all entities in the given collection in the persistent storage.- Specified by:
updatein interfaceBaseService<GeneProduct>- Parameters:
entities- the entities to be updated.
-
update
Description copied from interface:BaseServiceUpdates the given entity in the persistent storage.- Specified by:
updatein interfaceBaseService<GeneProduct>- Parameters:
entity- the entity to be updated.
-
getGenesByName
- Parameters:
search- name- Returns:
- all the genes that share the given gene product name
-
getGenesByNcbiId
- Parameters:
search- ncbiID- Returns:
- all the genes that share the given gene product ncbi id
-
findByName
-
thaw
-