Class SingleExperimentAnalysisDaoBase<T extends SingleExperimentAnalysis>
- java.lang.Object
-
- ubic.gemma.persistence.service.AbstractDao<T>
-
- ubic.gemma.persistence.service.analysis.SingleExperimentAnalysisDaoBase<T>
-
- All Implemented Interfaces:
AnalysisDao<T>
,SingleExperimentAnalysisDao<T>
,BaseDao<T>
- Direct Known Subclasses:
CoexpressionAnalysisDaoImpl
public abstract class SingleExperimentAnalysisDaoBase<T extends SingleExperimentAnalysis> extends AbstractDao<T> implements SingleExperimentAnalysisDao<T>
Base Spring DAO Class: is able to create, update, remove, load, and find objects of typeSingleExperimentAnalysis
.The single experiment analysis has a related
BioAssaySet
which is typically either aExpressionExperiment
or aExpressionExperimentSubSet
.- See Also:
SingleExperimentAnalysis
-
-
Field Summary
-
Fields inherited from class ubic.gemma.persistence.service.AbstractDao
elementClass, log
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SingleExperimentAnalysisDaoBase(Class<T> elementClass, SessionFactory sessionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
existsByExperiment(BioAssaySet ee)
Indicate if there is an analysis (or at least one) for the given experiment.Collection<T>
findByExperiment(BioAssaySet experiment)
Find by associated experiment viaSingleExperimentAnalysis.getExperimentAnalyzed()
.Map<BioAssaySet,Collection<T>>
findByExperiments(Collection<? extends BioAssaySet> experiments)
Given a collection of experiments returns a Map of Analysis --> collection of Experiments The collection of investigations returned by the map will include all the investigations for the analysis key iff one of the investigations for that analysis was in the given collection started withCollection<T>
findByName(String name)
Collection<T>
findByTaxon(Taxon taxon)
-
Methods inherited from class ubic.gemma.persistence.service.AbstractDao
countAll, create, create, find, 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, find, findOrCreate, getElementClass, getIdentifierPropertyName, load, load, loadAll, loadReference, loadReference, remove, remove, remove, save, save, update, update
-
-
-
-
Constructor Detail
-
SingleExperimentAnalysisDaoBase
protected SingleExperimentAnalysisDaoBase(Class<T> elementClass, SessionFactory sessionFactory)
-
-
Method Detail
-
findByExperiment
public Collection<T> findByExperiment(BioAssaySet experiment)
Description copied from interface:SingleExperimentAnalysisDao
Find by associated experiment viaSingleExperimentAnalysis.getExperimentAnalyzed()
.- Specified by:
findByExperiment
in interfaceSingleExperimentAnalysisDao<T extends SingleExperimentAnalysis>
-
findByExperiments
public Map<BioAssaySet,Collection<T>> findByExperiments(Collection<? extends BioAssaySet> experiments)
Description copied from interface:SingleExperimentAnalysisDao
Given a collection of experiments returns a Map of Analysis --> collection of Experiments The collection of investigations returned by the map will include all the investigations for the analysis key iff one of the investigations for that analysis was in the given collection started with- Specified by:
findByExperiments
in interfaceSingleExperimentAnalysisDao<T extends SingleExperimentAnalysis>
- Parameters:
experiments
- experiments- Returns:
- map to analyses
-
findByTaxon
public Collection<T> findByTaxon(Taxon taxon)
- Specified by:
findByTaxon
in interfaceAnalysisDao<T extends SingleExperimentAnalysis>
-
findByName
public Collection<T> findByName(String name)
- Specified by:
findByName
in interfaceAnalysisDao<T extends SingleExperimentAnalysis>
- Parameters:
name
- name- Returns:
- a collection of analysis that have a name that starts with the given name
-
existsByExperiment
public boolean existsByExperiment(BioAssaySet ee)
Description copied from interface:AnalysisDao
Indicate if there is an analysis (or at least one) for the given experiment.- Specified by:
existsByExperiment
in interfaceAnalysisDao<T extends SingleExperimentAnalysis>
-
-