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.void
Removes the given entity from the persistent storage.void
Updates the given entity in the persistent storage.Methods inherited from interface ubic.gemma.persistence.service.BaseImmutableService
create, create, remove, remove
Methods inherited from interface ubic.gemma.persistence.service.BaseReadOnlyService
countAll, findOrFail, getElementClass, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail, streamAll, streamAll
Methods inherited from interface ubic.gemma.persistence.service.BaseService
save, save, update
-
Method Details
-
find
Description copied from interface:BaseReadOnlyService
Does a search for the entity in the persistent storage- Specified by:
find
in 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:BaseImmutableService
Does a search for the entity in the persistent storage, and if not found, creates it.- Specified by:
findOrCreate
in 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:BaseImmutableService
Removes the given entity from the persistent storage.- Specified by:
remove
in interfaceBaseImmutableService<Contact>
- Parameters:
contact
- the entity to be removed.
-
update
Description copied from interface:BaseService
Updates the given entity in the persistent storage.- Specified by:
update
in interfaceBaseService<Contact>
- Parameters:
contact
- the entity to be updated.
-