Package ubic.gemma.persistence.service
Interface BaseImmutableService<O extends Identifiable>
-
- All Superinterfaces:
BaseReadOnlyService<O>
- All Known Subinterfaces:
AnalysisService<T>
,AnnotationAssociationService
,ArrayDesignService
,AuditTrailService
,BaseService<O>
,BibliographicReferenceService
,BioAssayDimensionService
,BioAssayService
,BioMaterialService
,BioSequenceService
,BlacklistedEntityService
,BlatAssociationService
,BlatResultService
,CharacteristicService
,CoexpressionAnalysisService
,CompositeSequenceService
,CompoundService
,ContactService
,CuratableService<C,VO>
,DatabaseEntryService
,DifferentialExpressionAnalysisService
,ExperimentalDesignService
,ExperimentalFactorService
,ExpressionExperimentService
,ExpressionExperimentSetService
,ExpressionExperimentSubSetService
,ExternalDatabaseService
,FactorValueService
,Gene2GOAssociationService
,GeneDiffExMetaAnalysisService
,GeneProductService
,GeneService
,GeneSetService
,PhenotypeAssociationService
,PrincipalComponentAnalysisService
,ProtocolService
,QuantitationTypeService
,SingleExperimentAnalysisService<T>
,TaxonService
- All Known Implementing Classes:
AbstractDesignElementDataVectorService
,AbstractFilteringVoEnabledService
,AbstractService
,AbstractVoEnabledService
,AnnotationAssociationServiceImpl
,ArrayDesignServiceImpl
,AuditTrailServiceImpl
,BibliographicReferenceServiceImpl
,BioAssayDimensionServiceImpl
,BioAssayServiceImpl
,BioMaterialServiceImpl
,BioSequenceServiceImpl
,BlacklistedEntityServiceImpl
,BlatAssociationServiceImpl
,BlatResultServiceImpl
,CharacteristicServiceImpl
,ChromosomeServiceImpl
,CoexpressionAnalysisServiceImpl
,CompositeSequenceServiceImpl
,CompoundServiceImpl
,ContactServiceImpl
,DatabaseEntryServiceImpl
,DifferentialExpressionAnalysisServiceImpl
,DifferentialExpressionResultServiceImpl
,ExperimentalDesignServiceImpl
,ExperimentalFactorServiceImpl
,ExpressionAnalysisResultSetServiceImpl
,ExpressionExperimentServiceImpl
,ExpressionExperimentSetServiceImpl
,ExpressionExperimentSubSetServiceImpl
,ExternalDatabaseServiceImpl
,FactorValueServiceImpl
,GeeqServiceImpl
,Gene2GOAssociationServiceImpl
,GeneDiffExMetaAnalysisServiceImpl
,GeneProductServiceImpl
,GeneServiceImpl
,GeneSetServiceImpl
,PhenotypeAssociationServiceImpl
,PrincipalComponentAnalysisServiceImpl
,ProcessedExpressionDataVectorServiceImpl
,ProtocolServiceImpl
,QuantitationTypeServiceImpl
,RawAndProcessedExpressionDataVectorServiceImpl
,RawExpressionDataVectorServiceImpl
,TaxonServiceImpl
public interface BaseImmutableService<O extends Identifiable> extends BaseReadOnlyService<O>
Base service class for an immutable entity.Immutable entities can be created, deleted but never updated.
- Author:
- poirigui
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<O>
create(Collection<O> entities)
Creates all the given entities in a persistent storageO
create(O entity)
Creates the given entity in the persistent storage.O
findOrCreate(O entity)
Does a search for the entity in the persistent storage, and if not found, creates it.void
remove(Long id)
Removes the entity with given ID from the persistent storage.void
remove(Collection<O> entities)
Removes all the given entities from persistent storage.void
remove(O entity)
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
-
-
-
-
Method Detail
-
findOrCreate
@CheckReturnValue O findOrCreate(O entity)
Does a search for the entity in the persistent storage, and if not found, creates it.- Parameters:
entity
- the entity to look for, and create if not found.- Returns:
- the entity retrieved from the persistent storage, either found or created.
-
create
@CheckReturnValue Collection<O> create(Collection<O> entities)
Creates all the given entities in a persistent storage- Parameters:
entities
- the entities to be created.- Returns:
- collection of objects referencing the persistent instances of given entities.
-
create
@CheckReturnValue O create(O entity)
Creates the given entity in the persistent storage.- Parameters:
entity
- the entity to be created.- Returns:
- object referencing the persistent instance of the given entity.
-
remove
void remove(Collection<O> entities)
Removes all the given entities from persistent storage.- Parameters:
entities
- the entities to be removed.
-
remove
void remove(Long id)
Removes the entity with given ID from the persistent storage.- Parameters:
id
- the ID of entity to be removed.
-
remove
void remove(O entity)
Removes the given entity from the persistent storage.- Parameters:
entity
- the entity to be removed.
-
-