Class BioMaterialDaoImpl
- java.lang.Object
-
- ubic.gemma.persistence.service.AbstractDao<O>
-
- ubic.gemma.persistence.service.AbstractVoEnabledDao<BioMaterial,BioMaterialValueObject>
-
- ubic.gemma.persistence.service.expression.biomaterial.BioMaterialDaoImpl
-
- All Implemented Interfaces:
BaseDao<BioMaterial>,BaseVoEnabledDao<BioMaterial,BioMaterialValueObject>,BioMaterialDao
@Repository public class BioMaterialDaoImpl extends AbstractVoEnabledDao<BioMaterial,BioMaterialValueObject> implements BioMaterialDao
- Author:
- pavlidis
- See Also:
BioMaterial
-
-
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 BioMaterialDaoImpl(SessionFactory sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BioMaterialcopy(BioMaterial bioMaterial)protected BioMaterialValueObjectdoLoadValueObject(BioMaterial entity)Load a value object for a given entity.BioMaterialfind(BioMaterial bioMaterial)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<BioMaterial>findByExperiment(ExpressionExperiment experiment)Collection<BioMaterial>findByFactorValue(FactorValue fv)ExpressionExperimentgetExpressionExperiment(Long bioMaterialId)voidthaw(BioMaterial bioMaterial)Thaw the given BioMaterial.-
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
-
-
-
-
Constructor Detail
-
BioMaterialDaoImpl
@Autowired public BioMaterialDaoImpl(SessionFactory sessionFactory)
-
-
Method Detail
-
find
public BioMaterial find(BioMaterial bioMaterial)
Description copied from interface:BaseDaoDoes 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:
findin interfaceBaseDao<BioMaterial>- Overrides:
findin classAbstractDao<BioMaterial>- Parameters:
bioMaterial- the entity to look for.- Returns:
- an entity that was found in the persistent storage, or null if no such entity was found.
-
copy
public BioMaterial copy(BioMaterial bioMaterial)
- Specified by:
copyin interfaceBioMaterialDao
-
findByExperiment
public Collection<BioMaterial> findByExperiment(ExpressionExperiment experiment)
- Specified by:
findByExperimentin interfaceBioMaterialDao
-
findByFactorValue
public Collection<BioMaterial> findByFactorValue(FactorValue fv)
- Specified by:
findByFactorValuein interfaceBioMaterialDao
-
getExpressionExperiment
public ExpressionExperiment getExpressionExperiment(Long bioMaterialId)
- Specified by:
getExpressionExperimentin interfaceBioMaterialDao- Parameters:
bioMaterialId- biomaterial id- Returns:
- the experiment the biomaterial appears in
-
thaw
public void thaw(BioMaterial bioMaterial)
Description copied from interface:BioMaterialDaoThaw the given BioMaterial.The following fields are initialized: sourceTaxon, treatments and factorValues.experimentalFactor.
- Specified by:
thawin interfaceBioMaterialDao
-
doLoadValueObject
protected BioMaterialValueObject doLoadValueObject(BioMaterial entity)
Description copied from class:AbstractVoEnabledDaoLoad 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:
doLoadValueObjectin classAbstractVoEnabledDao<BioMaterial,BioMaterialValueObject>
-
-