Interface CompoundService
-
- All Superinterfaces:
BaseImmutableService<Compound>
,BaseReadOnlyService<Compound>
- All Known Implementing Classes:
CompoundServiceImpl
public interface CompoundService extends BaseImmutableService<Compound>
- Author:
- kelsey
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Compound
findOrCreate(Compound compound)
Does a search for the entity in the persistent storage, and if not found, creates it.void
remove(Compound compound)
Removes the given entity from 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, find, findOrFail, getElementClass, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail
-
-
-
-
Method Detail
-
findOrCreate
@Secured("GROUP_USER") Compound findOrCreate(Compound compound)
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<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)
Description copied from interface:BaseImmutableService
Removes the given entity from the persistent storage.- Specified by:
remove
in interfaceBaseImmutableService<Compound>
- Parameters:
compound
- the entity to be removed.
-
-