Class QuantitationTypeDaoImpl
- java.lang.Object
-
- ubic.gemma.persistence.service.AbstractDao<O>
-
- ubic.gemma.persistence.service.AbstractVoEnabledDao<O,VO>
-
- ubic.gemma.persistence.service.AbstractFilteringVoEnabledDao<O,VO>
-
- ubic.gemma.persistence.service.AbstractCriteriaFilteringVoEnabledDao<QuantitationType,QuantitationTypeValueObject>
-
- ubic.gemma.persistence.service.common.quantitationtype.QuantitationTypeDaoImpl
-
- All Implemented Interfaces:
InitializingBean
,BaseDao<QuantitationType>
,BaseVoEnabledDao<QuantitationType,QuantitationTypeValueObject>
,QuantitationTypeDao
,FilteringDao<QuantitationType>
,FilteringVoEnabledDao<QuantitationType,QuantitationTypeValueObject>
@Repository public class QuantitationTypeDaoImpl extends AbstractCriteriaFilteringVoEnabledDao<QuantitationType,QuantitationTypeValueObject> implements QuantitationTypeDao
Base Spring DAO Class: is able to create, update, remove, load, and find objects of type
QuantitationType
.- See Also:
QuantitationType
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class ubic.gemma.persistence.service.AbstractFilteringVoEnabledDao
AbstractFilteringVoEnabledDao.FilterablePropertiesConfigurer, AbstractFilteringVoEnabledDao.FilterablePropertyMeta
-
-
Field Summary
-
Fields inherited from class ubic.gemma.persistence.service.AbstractVoEnabledDao
REPORT_SLOW_QUERY_AFTER_MS
-
Fields inherited from class ubic.gemma.persistence.service.AbstractDao
elementClass, log
-
-
Constructor Summary
Constructors Constructor Description QuantitationTypeDaoImpl(SessionFactory sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected QuantitationTypeValueObject
doLoadValueObject(QuantitationType entity)
Load a value object for a given entity.boolean
existsByExpressionExperimentAndVectorType(QuantitationType quantitationType, ExpressionExperiment ee, Class<? extends DesignElementDataVector> dataVectorClass)
Test if a given quantitation type is used by a given experiment for a given vector type.QuantitationType
find(QuantitationType quantitationType)
Does a look up for the given entity in the persistent storage, usually looking for a specific identifier ( either id or a string property).QuantitationType
find(ExpressionExperiment ee, QuantitationType quantitationType)
Locate a QT associated with the given ee matching the specification of the passed quantitationType, or null if there isn't one.List<QuantitationType>
loadByDescription(String description)
List<QuantitationTypeValueObject>
loadValueObjectsWithExpressionExperiment(Collection<QuantitationType> qts, ExpressionExperiment ee)
LoadQuantitationTypeValueObject
in the context of an associated expression experiment.-
Methods inherited from class ubic.gemma.persistence.service.AbstractCriteriaFilteringVoEnabledDao
afterPropertiesSet, count, getFilterablePropertyMeta, getFilteringCriteria, load, load, loadIds, loadValueObjects, loadValueObjects
-
Methods inherited from class ubic.gemma.persistence.service.AbstractFilteringVoEnabledDao
configureFilterableProperties, getFilter, getFilter, getFilter, getFilter, getFilterableProperties, getFilterablePropertyAllowedValues, getFilterablePropertyDescription, getFilterablePropertyIsUsingSubquery, getFilterablePropertyMeta, getFilterablePropertyType, getSort
-
Methods inherited from class ubic.gemma.persistence.service.AbstractVoEnabledDao
doLoadValueObjects, loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIds, postProcessValueObjects
-
Methods inherited from class ubic.gemma.persistence.service.AbstractDao
countAll, create, create, findByProperty, findByPropertyIn, findOneByProperty, findOrCreate, getBatchSize, getElementClass, getIdentifierPropertyName, getSessionFactory, load, load, loadAll, loadReference, loadReference, 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.BaseDao
countAll, create, create, findOrCreate, getElementClass, getIdentifierPropertyName, load, load, loadAll, loadReference, loadReference, remove, remove, remove, save, save, update, update
-
Methods inherited from interface ubic.gemma.persistence.service.BaseVoEnabledDao
loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIds
-
Methods inherited from interface ubic.gemma.persistence.service.FilteringDao
count, getFilter, getFilter, getFilter, getFilter, getFilterableProperties, getFilterablePropertyAllowedValues, getFilterablePropertyDescription, getFilterablePropertyIsUsingSubquery, getFilterablePropertyType, getSort, load, load, loadIds
-
Methods inherited from interface ubic.gemma.persistence.service.FilteringVoEnabledDao
loadValueObjects, loadValueObjects
-
-
-
-
Constructor Detail
-
QuantitationTypeDaoImpl
@Autowired public QuantitationTypeDaoImpl(SessionFactory sessionFactory)
-
-
Method Detail
-
find
public QuantitationType find(QuantitationType quantitationType)
Description copied from interface:BaseDao
Does a look up for the given entity in the persistent storage, usually looking for a specific identifier ( either id or a string property).- Specified by:
find
in interfaceBaseDao<QuantitationType>
- Overrides:
find
in classAbstractDao<QuantitationType>
- Parameters:
quantitationType
- the entity to look for.- Returns:
- an entity that was found in the persistent storage, or null if no such entity was found.
-
find
public QuantitationType find(ExpressionExperiment ee, QuantitationType quantitationType)
Description copied from interface:QuantitationTypeDao
Locate a QT associated with the given ee matching the specification of the passed quantitationType, or null if there isn't one.- Specified by:
find
in interfaceQuantitationTypeDao
- Returns:
- found QT
-
existsByExpressionExperimentAndVectorType
public boolean existsByExpressionExperimentAndVectorType(QuantitationType quantitationType, ExpressionExperiment ee, Class<? extends DesignElementDataVector> dataVectorClass)
Description copied from interface:QuantitationTypeDao
Test if a given quantitation type is used by a given experiment for a given vector type.- Specified by:
existsByExpressionExperimentAndVectorType
in interfaceQuantitationTypeDao
-
loadByDescription
public List<QuantitationType> loadByDescription(String description)
- Specified by:
loadByDescription
in interfaceQuantitationTypeDao
-
doLoadValueObject
protected QuantitationTypeValueObject doLoadValueObject(QuantitationType entity)
Description copied from class:AbstractVoEnabledDao
Load a value object for a given entity.This should be fast and efficient, and avoid any database query or post-processing. If you need to perform additional queries, implement
AbstractVoEnabledDao.postProcessValueObjects(List)
instead.- Specified by:
doLoadValueObject
in classAbstractVoEnabledDao<QuantitationType,QuantitationTypeValueObject>
-
loadValueObjectsWithExpressionExperiment
public List<QuantitationTypeValueObject> loadValueObjectsWithExpressionExperiment(Collection<QuantitationType> qts, ExpressionExperiment ee)
LoadQuantitationTypeValueObject
in the context of an associated expression experiment.The resulting VO has a few more fields filled which would be otherwise hidden from JSON serialization.
- Specified by:
loadValueObjectsWithExpressionExperiment
in interfaceQuantitationTypeDao
- See Also:
QuantitationTypeValueObject(QuantitationType, ExpressionExperiment, Class)
-
-