Package ubic.gemma.persistence.service
Class AbstractVoEnabledService<O extends Identifiable,VO extends IdentifiableValueObject<O>>
java.lang.Object
ubic.gemma.persistence.service.AbstractService<O>
ubic.gemma.persistence.service.AbstractVoEnabledService<O,VO>
- All Implemented Interfaces:
BaseImmutableService<O>,BaseReadOnlyService<O>,BaseService<O>,BaseVoEnabledService<O,VO>
- Direct Known Subclasses:
BibliographicReferenceServiceImpl,BioAssayDimensionServiceImpl,BioMaterialServiceImpl,BioSequenceServiceImpl,BlacklistedEntityServiceImpl,BlatResultServiceImpl,ExperimentalFactorServiceImpl,ExpressionExperimentSetServiceImpl,GeeqServiceImpl,GeneProductServiceImpl,GeneSetServiceImpl
public abstract class AbstractVoEnabledService<O extends Identifiable,VO extends IdentifiableValueObject<O>>
extends AbstractService<O>
implements BaseVoEnabledService<O,VO>
Created by tesarst on 01/06/17.
A special case of Service that also provides value object functionality.
-
Field Summary
Fields inherited from class ubic.gemma.persistence.service.AbstractService
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionLoads value objects representing all the entities of specific type.loadValueObject(O entity) loadValueObjectById(Long entityId) loadValueObjects(Collection<O> entities) Loads value objects for all given entities.loadValueObjectsByIds(Collection<Long> entityIds) Load value objects by a given collection of IDs.Methods inherited from class ubic.gemma.persistence.service.AbstractService
countAll, create, create, ensureInSession, ensureInSession, find, findOrCreate, findOrFail, getElementClass, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail, loadOrFail, loadOrFail, remove, remove, remove, save, save, streamAll, streamAll, update, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ubic.gemma.persistence.service.BaseReadOnlyService
countAll, find, findOrFail, getElementClass, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail, loadOrFail, loadOrFail, streamAll, streamAll
-
Constructor Details
-
AbstractVoEnabledService
-
-
Method Details
-
loadValueObject
- Specified by:
loadValueObjectin interfaceBaseVoEnabledService<O extends Identifiable,VO extends IdentifiableValueObject<O>> - See Also:
-
loadValueObjectById
- Specified by:
loadValueObjectByIdin interfaceBaseVoEnabledService<O extends Identifiable,VO extends IdentifiableValueObject<O>> - See Also:
-
loadValueObjects
Description copied from interface:BaseVoEnabledServiceLoads value objects for all given entities.- Specified by:
loadValueObjectsin interfaceBaseVoEnabledService<O extends Identifiable,VO extends IdentifiableValueObject<O>> - Parameters:
entities- the entities to be converted to value objects- Returns:
- a collection of value objects representing he given entities.
-
loadValueObjectsByIds
Description copied from interface:BaseVoEnabledServiceLoad value objects by a given collection of IDs.- Specified by:
loadValueObjectsByIdsin interfaceBaseVoEnabledService<O extends Identifiable,VO extends IdentifiableValueObject<O>>
-
loadAllValueObjects
Description copied from interface:BaseVoEnabledServiceLoads value objects representing all the entities of specific type.- Specified by:
loadAllValueObjectsin interfaceBaseVoEnabledService<O extends Identifiable,VO extends IdentifiableValueObject<O>> - Returns:
- a collection of value objects
-