Interface ContactService
- All Superinterfaces:
BaseImmutableService<Contact>,BaseReadOnlyService<Contact>,BaseService<Contact>
- All Known Implementing Classes:
ContactServiceImpl
- Author:
- kelsey
-
Method Summary
Modifier and TypeMethodDescriptionDoes a search for the entity in the persistent storagefindOrCreate(Contact contact) Does a search for the entity in the persistent storage, and if not found, creates it.voidRemoves the given entity from the persistent storage.voidUpdates the given entity in the persistent storage.Methods inherited from interface ubic.gemma.persistence.service.BaseImmutableService
create, create, remove, removeMethods inherited from interface ubic.gemma.persistence.service.BaseReadOnlyService
countAll, findOrFail, getElementClass, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail, loadOrFail, loadOrFail, streamAll, streamAllMethods inherited from interface ubic.gemma.persistence.service.BaseService
save, save, update
-
Method Details
-
find
Description copied from interface:BaseReadOnlyServiceDoes a search for the entity in the persistent storage- Specified by:
findin interfaceBaseReadOnlyService<Contact>- Parameters:
contact- the entity to be searched for- Returns:
- the version of entity retrieved from the persistent storage, if found, otherwise null.
-
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<Contact>- Parameters:
contact- 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 the given entity from the persistent storage.- Specified by:
removein interfaceBaseImmutableService<Contact>- Parameters:
contact- the entity to be removed.
-
update
Description copied from interface:BaseServiceUpdates the given entity in the persistent storage.- Specified by:
updatein interfaceBaseService<Contact>- Parameters:
contact- the entity to be updated.
-