-
Method Summary
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.
Methods inherited from interface ubic.gemma.persistence.service.BaseReadOnlyService
countAll, find, findOrFail, getElementClass, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail, streamAll, streamAll
-
Method Details
-
findOrCreate
Does a search for the entity in the persistent storage, and if not found, creates it.
- Specified by:
findOrCreate
in interface BaseImmutableService<Compound>
- Parameters:
compound
- the entity to look for, and create if not found.
- Returns:
- the entity retrieved from the persistent storage, either found or created.
-
remove
@Secured("GROUP_USER")
void remove(Compound compound)
Removes the given entity from the persistent storage.
- Specified by:
remove
in interface BaseImmutableService<Compound>
- Parameters:
compound
- the entity to be removed.