Class ExpressionAnalysisResultSetDaoImpl
- 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<ExpressionAnalysisResultSet,DifferentialExpressionAnalysisResultSetValueObject>
-
- ubic.gemma.persistence.service.analysis.expression.diff.ExpressionAnalysisResultSetDaoImpl
-
- All Implemented Interfaces:
InitializingBean,AnalysisResultSetDao<DifferentialExpressionAnalysisResult,ExpressionAnalysisResultSet>,ExpressionAnalysisResultSetDao,BaseDao<ExpressionAnalysisResultSet>,BaseVoEnabledDao<ExpressionAnalysisResultSet,DifferentialExpressionAnalysisResultSetValueObject>,FilteringDao<ExpressionAnalysisResultSet>,FilteringVoEnabledDao<ExpressionAnalysisResultSet,DifferentialExpressionAnalysisResultSetValueObject>
@Repository public class ExpressionAnalysisResultSetDaoImpl extends AbstractCriteriaFilteringVoEnabledDao<ExpressionAnalysisResultSet,DifferentialExpressionAnalysisResultSetValueObject> implements ExpressionAnalysisResultSetDao
- Author:
- Paul
-
-
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 ExpressionAnalysisResultSetDaoImpl(SessionFactory sessionFactory)
-
Method Summary
-
Methods inherited from class ubic.gemma.persistence.service.AbstractCriteriaFilteringVoEnabledDao
afterPropertiesSet, count, getFilterablePropertyMeta, load, load, loadIds, loadValueObjects, loadValueObjects
-
Methods inherited from class ubic.gemma.persistence.service.AbstractFilteringVoEnabledDao
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, find, findByProperty, findByPropertyIn, findOneByProperty, findOrCreate, getElementClass, getIdentifierPropertyName, getSessionFactory, load, load, loadAll, loadReference, loadReference, 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, find, findOrCreate, getElementClass, getIdentifierPropertyName, load, load, loadAll, loadReference, loadReference, 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
-
ExpressionAnalysisResultSetDaoImpl
@Autowired public ExpressionAnalysisResultSetDaoImpl(SessionFactory sessionFactory)
-
-
Method Detail
-
create
public ExpressionAnalysisResultSet create(ExpressionAnalysisResultSet entity)
Description copied from interface:BaseDaoCreate an object. If the entity type is immutable, this may also remove any existing entities identified by an appropriate 'find' method.- Specified by:
createin interfaceBaseDao<ExpressionAnalysisResultSet>- Overrides:
createin classAbstractDao<ExpressionAnalysisResultSet>- Parameters:
entity- the entity to create- Returns:
- the persistent version of the entity
-
remove
public void remove(ExpressionAnalysisResultSet entity)
Description copied from interface:BaseDaoRemove a persistent instance- Specified by:
removein interfaceBaseDao<ExpressionAnalysisResultSet>- Overrides:
removein classAbstractDao<ExpressionAnalysisResultSet>- Parameters:
entity- the entity to be removed
-
loadWithResultsAndContrasts
public ExpressionAnalysisResultSet loadWithResultsAndContrasts(Long id)
- Specified by:
loadWithResultsAndContrastsin interfaceExpressionAnalysisResultSetDao
-
canDelete
public boolean canDelete(DifferentialExpressionAnalysis differentialExpressionAnalysis)
- Specified by:
canDeletein interfaceExpressionAnalysisResultSetDao
-
findByBioAssaySetInAndDatabaseEntryInLimit
public Slice<DifferentialExpressionAnalysisResultSetValueObject> findByBioAssaySetInAndDatabaseEntryInLimit(@Nullable Collection<BioAssaySet> bioAssaySets, @Nullable Collection<DatabaseEntry> databaseEntries, @Nullable Filters filters, int offset, int limit, @Nullable Sort sort)
Description copied from interface:ExpressionAnalysisResultSetDaoRetrieve result sets associated to a set ofBioAssaySetand external database entries.- Specified by:
findByBioAssaySetInAndDatabaseEntryInLimitin interfaceExpressionAnalysisResultSetDao- Parameters:
bioAssaySets- relatedBioAssaySet, or any if nulldatabaseEntries- related external identifier associated to theBioAssaySet, or any if nullfilters- filters for restricting resultslimit- maximum number of results to returnsort- field and direction by which the collection is ordered
-
thaw
public void thaw(ExpressionAnalysisResultSet ears)
Description copied from interface:ExpressionAnalysisResultSetDaoInitialize the analysis and subset factor vale.- Specified by:
thawin interfaceExpressionAnalysisResultSetDao
-
getFilteringCriteria
protected Criteria getFilteringCriteria(@Nullable Filters filters)
Description copied from class:AbstractCriteriaFilteringVoEnabledDaoObtain aCriteriafor loading VOs.
-
configureFilterableProperties
protected void configureFilterableProperties(AbstractFilteringVoEnabledDao.FilterablePropertiesConfigurer configurer)
Description copied from class:AbstractFilteringVoEnabledDaoRegister filterable properties.
-
doLoadValueObject
protected DifferentialExpressionAnalysisResultSetValueObject doLoadValueObject(ExpressionAnalysisResultSet 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.
-
loadValueObjectWithResults
public DifferentialExpressionAnalysisResultSetValueObject loadValueObjectWithResults(ExpressionAnalysisResultSet entity)
Description copied from interface:ExpressionAnalysisResultSetDaoLoad an analysis result set with its all of its associated results.- Specified by:
loadValueObjectWithResultsin interfaceExpressionAnalysisResultSetDao- See Also:
BaseVoEnabledDao.loadValueObject(Identifiable)
-
loadResultToGenesMap
public Map<Long,List<Gene>> loadResultToGenesMap(ExpressionAnalysisResultSet resultSet)
Description copied from interface:ExpressionAnalysisResultSetDaoLoad aDifferentialExpressionAnalysisResulttoGenemulti-map.This is much faster than navigating through the probe's alignments, transcripts and then genes as it uses the internal GENE2CS table described in
TableMaintenanceUtil.updateGene2CsEntries().Note: Not all probes have associated genes, so you should use
Map.getOrDefault(Object, Object)with an empty collection to handle this case.- Specified by:
loadResultToGenesMapin interfaceExpressionAnalysisResultSetDao
-
-