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 Modifier Constructor Description protectedAbstractVoEnabledService(BaseVoEnabledDao<O,VO> voDao)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<VO>loadAllValueObjects()Loads value objects representing all the entities of specific type.VOloadValueObject(O entity)VOloadValueObjectById(Long entityId)List<VO>loadValueObjects(Collection<O> entities)Loads value objects for all given entities.List<VO>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, remove, remove, remove, save, save, update, update
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ubic.gemma.persistence.service.BaseReadOnlyService
countAll, find, findOrFail, getElementClass, load, load, loadAll, loadOrFail, loadOrFail, loadOrFail, loadOrFail
-
-
-
-
Constructor Detail
-
AbstractVoEnabledService
protected AbstractVoEnabledService(BaseVoEnabledDao<O,VO> voDao)
-
-
Method Detail
-
loadValueObject
@Transactional(readOnly=true) public VO loadValueObject(O entity)
- Specified by:
loadValueObjectin interfaceBaseVoEnabledService<O extends Identifiable,VO extends IdentifiableValueObject<O>>- See Also:
BaseVoEnabledDao.loadValueObject(Identifiable)
-
loadValueObjectById
@Transactional(readOnly=true) public VO loadValueObjectById(Long entityId)
- Specified by:
loadValueObjectByIdin interfaceBaseVoEnabledService<O extends Identifiable,VO extends IdentifiableValueObject<O>>- See Also:
BaseVoEnabledDao.loadValueObjectById(Long)
-
loadValueObjects
@Transactional(readOnly=true) public List<VO> loadValueObjects(Collection<O> entities)
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
@Transactional(readOnly=true) public List<VO> loadValueObjectsByIds(Collection<Long> entityIds)
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
@Transactional(readOnly=true) public List<VO> 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
-
-