Class BioAssayDaoImpl
- java.lang.Object
-
- ubic.gemma.persistence.service.AbstractDao<O>
-
- ubic.gemma.persistence.service.AbstractVoEnabledDao<O,VO>
-
- ubic.gemma.persistence.service.AbstractNoopFilteringVoEnabledDao<BioAssay,BioAssayValueObject>
-
- ubic.gemma.persistence.service.expression.bioAssay.BioAssayDaoImpl
-
- All Implemented Interfaces:
BaseDao<BioAssay>
,BaseVoEnabledDao<BioAssay,BioAssayValueObject>
,BioAssayDao
,FilteringDao<BioAssay>
,FilteringVoEnabledDao<BioAssay,BioAssayValueObject>
@Repository public class BioAssayDaoImpl extends AbstractNoopFilteringVoEnabledDao<BioAssay,BioAssayValueObject> implements BioAssayDao
- Author:
- pavlidis
-
-
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
-
Fields inherited from interface ubic.gemma.persistence.service.expression.bioAssay.BioAssayDao
OBJECT_ALIAS
-
-
Constructor Summary
Constructors Constructor Description BioAssayDaoImpl(SessionFactory sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected BioAssayValueObject
doLoadValueObject(BioAssay entity)
Load a value object for a given entity.BioAssay
find(BioAssay bioAssay)
Does a look up for the given entity in the persistent storage, usually looking for a specific identifier ( either id or a string property).Collection<BioAssayDimension>
findBioAssayDimensions(BioAssay bioAssay)
Collection<BioAssay>
findByAccession(String accession)
List<BioAssayValueObject>
loadValueObjects(Collection<BioAssay> entities, Map<Long,ArrayDesignValueObject> arrayDesignValueObjects, boolean basic)
Method that allows specification of FactorValueBasicValueObject in the bioMaterialVOsCollection<BioAssay>
thaw(Collection<BioAssay> bioAssays)
void
thaw(BioAssay bioAssay)
-
Methods inherited from class ubic.gemma.persistence.service.AbstractNoopFilteringVoEnabledDao
count, getFilter, getFilter, getFilter, getFilter, getFilterableProperties, getFilterablePropertyAllowedValues, getFilterablePropertyDescription, getFilterablePropertyIsUsingSubquery, getFilterablePropertyType, getSort, load, load, loadIds, loadValueObjects, loadValueObjects
-
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, 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
-
BioAssayDaoImpl
@Autowired public BioAssayDaoImpl(SessionFactory sessionFactory)
-
-
Method Detail
-
find
public BioAssay find(BioAssay bioAssay)
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).
-
findBioAssayDimensions
public Collection<BioAssayDimension> findBioAssayDimensions(BioAssay bioAssay)
- Specified by:
findBioAssayDimensions
in interfaceBioAssayDao
-
findByAccession
public Collection<BioAssay> findByAccession(String accession)
- Specified by:
findByAccession
in interfaceBioAssayDao
-
thaw
public void thaw(BioAssay bioAssay)
- Specified by:
thaw
in interfaceBioAssayDao
-
thaw
public Collection<BioAssay> thaw(Collection<BioAssay> bioAssays)
- Specified by:
thaw
in interfaceBioAssayDao
-
loadValueObjects
public List<BioAssayValueObject> loadValueObjects(Collection<BioAssay> entities, Map<Long,ArrayDesignValueObject> arrayDesignValueObjects, boolean basic)
Method that allows specification of FactorValueBasicValueObject in the bioMaterialVOs- Specified by:
loadValueObjects
in interfaceBioAssayDao
- Parameters:
entities
- the bio assays to convert into a VObasic
- true to use FactorValueBasicValueObject, false to use classic FactorValueValueObject- Returns:
- a collection of bioAssay value objects
-
doLoadValueObject
protected BioAssayValueObject doLoadValueObject(BioAssay 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<BioAssay,BioAssayValueObject>
-
-