Class ExpressionExperimentSetDaoImpl
java.lang.Object
ubic.gemma.persistence.service.AbstractDao<ExpressionExperimentSet>
ubic.gemma.persistence.service.AbstractVoEnabledDao<ExpressionExperimentSet,ExpressionExperimentSetValueObject>
ubic.gemma.persistence.service.analysis.expression.ExpressionExperimentSetDaoImpl
- All Implemented Interfaces:
ExpressionExperimentSetDao
,BaseDao<ExpressionExperimentSet>
,BaseVoEnabledDao<ExpressionExperimentSet,
ExpressionExperimentSetValueObject>
@Repository
public class ExpressionExperimentSetDaoImpl
extends AbstractVoEnabledDao<ExpressionExperimentSet,ExpressionExperimentSetValueObject>
implements ExpressionExperimentSetDao
- Author:
- paul
-
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
log
-
Constructor Summary
ConstructorsConstructorDescriptionExpressionExperimentSetDaoImpl
(SessionFactory sessionFactory, ExpressionExperimentDao expressionExperimentDao) -
Method Summary
Modifier and TypeMethodDescriptionprotected ExpressionExperimentSetValueObject
Load a value object for a given entity.doLoadValueObjects
(Collection<ExpressionExperimentSet> entities) Load all the value objects for the given entities.findByAccession
(String accession) findByAccession
(String accession, ExternalDatabase externalDatabase) findByName
(String name) loadAllValueObjects
(boolean loadEEIds) loadValueObject
(Long id, boolean loadEEIds) loadValueObjects
(Collection<Long> eeSetIds, boolean loadEEIds) void
thaw
(ExpressionExperimentSet expressionExperimentSet) Methods inherited from class ubic.gemma.persistence.service.AbstractVoEnabledDao
loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIds, postProcessValueObjects
Methods inherited from class ubic.gemma.persistence.service.AbstractDao
countAll, create, create, find, findByProperty, findByPropertyIn, findOneByProperty, findOrCreate, getBatchSize, getElementClass, getIdentifierPropertyName, getSessionFactory, load, load, loadAll, loadReference, loadReference, reload, reload, remove, remove, remove, save, save, streamAll, streamAll, streamQuery, 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, find, findOrCreate, getElementClass, getIdentifierPropertyName, load, load, loadAll, loadReference, loadReference, reload, reload, remove, remove, remove, save, save, streamAll, streamAll, update, update
Methods inherited from interface ubic.gemma.persistence.service.BaseVoEnabledDao
loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIds
-
Constructor Details
-
ExpressionExperimentSetDaoImpl
@Autowired public ExpressionExperimentSetDaoImpl(SessionFactory sessionFactory, ExpressionExperimentDao expressionExperimentDao)
-
-
Method Details
-
find
- Specified by:
find
in interfaceExpressionExperimentSetDao
- Parameters:
ee
- bio assay set- Returns:
- expressionExperimentSets that contain the given ee.
-
findByName
- Specified by:
findByName
in interfaceExpressionExperimentSetDao
-
findByAccession
- Specified by:
findByAccession
in interfaceExpressionExperimentSetDao
-
findByAccession
public Collection<ExpressionExperimentSet> findByAccession(String accession, ExternalDatabase externalDatabase) - Specified by:
findByAccession
in interfaceExpressionExperimentSetDao
-
getExperimentsInSet
- Specified by:
getExperimentsInSet
in interfaceExpressionExperimentSetDao
- Parameters:
id
- id- Returns:
- the security-filtered list of experiments in a set. It is possible for the return to be empty even if the set is not (due to security filters). Use this instead of expressionExperimentSet.getExperiments.
-
loadAllExperimentSetsWithTaxon
- Specified by:
loadAllExperimentSetsWithTaxon
in interfaceExpressionExperimentSetDao
- Returns:
- ExpressionExperimentSets that have more than 1 experiment in them & have a taxon value.
-
thaw
- Specified by:
thaw
in interfaceExpressionExperimentSetDao
-
loadAllValueObjects
- Specified by:
loadAllValueObjects
in interfaceExpressionExperimentSetDao
- Parameters:
loadEEIds
- whether the returned value object should have the ExpressionExperimentIds collection populated. This might be a useful information, but loading the IDs takes slightly longer, so for larger amount of EESets this might want to be avoided.- Returns:
- ee vos
-
loadValueObjects
public List<ExpressionExperimentSetValueObject> loadValueObjects(Collection<Long> eeSetIds, boolean loadEEIds) - Specified by:
loadValueObjects
in interfaceExpressionExperimentSetDao
- Parameters:
eeSetIds
- idsloadEEIds
- whether the returned value object should have the ExpressionExperimentIds collection populated. This might be a useful information, but loading the IDs takes slightly longer, so for larger amount of EESets this might want to be avoided.- Returns:
- ee vos
-
getExperimentValueObjectsInSet
- Specified by:
getExperimentValueObjectsInSet
in interfaceExpressionExperimentSetDao
-
loadValueObject
- Specified by:
loadValueObject
in interfaceExpressionExperimentSetDao
- Parameters:
id
- idloadEEIds
- whether the returned value object should have the ExpressionExperimentIds collection populated. This might be a useful information, but loading the IDs takes slightly longer, so for larger amount of EESets this might want to be avoided.- Returns:
- ee vos
-
doLoadValueObject
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<ExpressionExperimentSet,
ExpressionExperimentSetValueObject>
-
doLoadValueObjects
public List<ExpressionExperimentSetValueObject> doLoadValueObjects(Collection<ExpressionExperimentSet> entities) Description copied from class:AbstractVoEnabledDao
Load all the value objects for the given entities.The default is to apply
AbstractVoEnabledDao.doLoadValueObject(Identifiable)
on each entry and weed out null elements.This method should be fast and any post-processing should happen in
AbstractVoEnabledDao.postProcessValueObjects(List)
.- Overrides:
doLoadValueObjects
in classAbstractVoEnabledDao<ExpressionExperimentSet,
ExpressionExperimentSetValueObject>
-