Class ArrayDesignDaoImpl
- 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.AbstractQueryFilteringVoEnabledDao<C,VO>
- 
- ubic.gemma.persistence.service.common.auditAndSecurity.curation.AbstractCuratableDao<ArrayDesign,ArrayDesignValueObject>
- 
- ubic.gemma.persistence.service.expression.arrayDesign.ArrayDesignDaoImpl
 
 
 
 
 
 
- 
- All Implemented Interfaces:
- org.springframework.beans.factory.InitializingBean,- BaseDao<ArrayDesign>,- BaseVoEnabledDao<ArrayDesign,ArrayDesignValueObject>,- CachedFilteringDao<ArrayDesign>,- CachedFilteringVoEnabledDao<ArrayDesign,ArrayDesignValueObject>,- CuratableDao<ArrayDesign>,- ArrayDesignDao,- FilteringDao<ArrayDesign>,- FilteringVoEnabledDao<ArrayDesign,ArrayDesignValueObject>
 
 @Repository public class ArrayDesignDaoImpl extends AbstractCuratableDao<ArrayDesign,ArrayDesignValueObject> implements ArrayDesignDao - Author:
- pavlidis
- See Also:
- ArrayDesign
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class ubic.gemma.persistence.service.AbstractFilteringVoEnabledDaoAbstractFilteringVoEnabledDao.FilterablePropertiesConfigurer, AbstractFilteringVoEnabledDao.FilterablePropertyMeta
 
- 
 - 
Field Summary- 
Fields inherited from class ubic.gemma.persistence.service.common.auditAndSecurity.curation.AbstractCuratableDaoCURATION_DETAILS_ALIAS
 - 
Fields inherited from class ubic.gemma.persistence.service.AbstractVoEnabledDaoREPORT_SLOW_QUERY_AFTER_MS
 - 
Fields inherited from class ubic.gemma.persistence.service.AbstractDaoelementClass, log
 - 
Fields inherited from interface ubic.gemma.persistence.service.expression.arrayDesign.ArrayDesignDaoOBJECT_ALIAS
 
- 
 - 
Constructor SummaryConstructors Constructor Description ArrayDesignDaoImpl(SessionFactory sessionFactory)
 - 
Method Summary- 
Methods inherited from class ubic.gemma.persistence.service.common.auditAndSecurity.curation.AbstractCuratableDaoaddEventsToMap, addNonTroubledFilter, distinctIfNecessary, formNativeNonTroubledClause, formNonTroubledClause, groupByIfNecessary, updateCurationDetailsFromAuditEvent
 - 
Methods inherited from class ubic.gemma.persistence.service.AbstractQueryFilteringVoEnabledDaocount, countWithCache, getEntityTransformer, getValueObjectTransformer, load, load, loadIds, loadIdsWithCache, loadValueObjects, loadValueObjects, loadValueObjectsWithCache, loadValueObjectsWithCache, loadWithCache, loadWithCache
 - 
Methods inherited from class ubic.gemma.persistence.service.AbstractFilteringVoEnabledDaoafterPropertiesSet, getFilter, getFilter, getFilter, getFilter, getFilter, getFilter, getFilterableProperties, getFilterablePropertyAllowedValues, getFilterablePropertyDescription, getFilterablePropertyIsUsingSubquery, getFilterablePropertyMeta, getFilterablePropertyType, getSort
 - 
Methods inherited from class ubic.gemma.persistence.service.AbstractVoEnabledDaodoLoadValueObjects, loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIds
 - 
Methods inherited from class ubic.gemma.persistence.service.AbstractDaocountAll, create, create, findByProperty, findByPropertyIn, findOneByProperty, findOrCreate, getBatchSize, getElementClass, getIdentifierPropertyName, getSessionFactory, load, load, loadAll, loadReference, loadReference, remove, remove, save, save, update, update
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface ubic.gemma.persistence.service.BaseDaocountAll, create, create, findOrCreate, getElementClass, getIdentifierPropertyName, load, load, loadAll, loadReference, loadReference, remove, remove, save, save, update, update
 - 
Methods inherited from interface ubic.gemma.persistence.service.BaseVoEnabledDaoloadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIds
 - 
Methods inherited from interface ubic.gemma.persistence.service.CachedFilteringDaocountWithCache, loadIdsWithCache, loadWithCache, loadWithCache
 - 
Methods inherited from interface ubic.gemma.persistence.service.CachedFilteringVoEnabledDaoloadValueObjectsWithCache, loadValueObjectsWithCache
 - 
Methods inherited from interface ubic.gemma.persistence.service.common.auditAndSecurity.curation.CuratableDaoupdateCurationDetailsFromAuditEvent
 - 
Methods inherited from interface ubic.gemma.persistence.service.FilteringDaocount, getFilter, getFilter, getFilter, getFilter, getFilter, getFilter, getFilterableProperties, getFilterablePropertyAllowedValues, getFilterablePropertyDescription, getFilterablePropertyIsUsingSubquery, getFilterablePropertyType, getSort, load, load, loadIds
 - 
Methods inherited from interface ubic.gemma.persistence.service.FilteringVoEnabledDaoloadValueObjects, loadValueObjects
 
- 
 
- 
- 
- 
Constructor Detail- 
ArrayDesignDaoImpl@Autowired public ArrayDesignDaoImpl(SessionFactory sessionFactory) 
 
- 
 - 
Method Detail- 
addProbespublic void addProbes(ArrayDesign arrayDesign, Collection<CompositeSequence> newProbes) - Specified by:
- addProbesin interface- ArrayDesignDao
 
 - 
deleteAlignmentDatapublic void deleteAlignmentData(ArrayDesign arrayDesign) - Specified by:
- deleteAlignmentDatain interface- ArrayDesignDao
 
 - 
deleteGeneProductAlignmentAssociationspublic void deleteGeneProductAlignmentAssociations(ArrayDesign arrayDesign) - Specified by:
- deleteGeneProductAlignmentAssociationsin interface- ArrayDesignDao
 
 - 
deleteGeneProductAnnotationAssociationspublic void deleteGeneProductAnnotationAssociations(ArrayDesign arrayDesign) - Specified by:
- deleteGeneProductAnnotationAssociationsin interface- ArrayDesignDao
 
 - 
loadBlacklistedValueObjectspublic Slice<ArrayDesignValueObject> loadBlacklistedValueObjects(@Nullable Filters filters, @Nullable Sort sort, int offset, int limit) - Specified by:
- loadBlacklistedValueObjectsin interface- ArrayDesignDao
 
 - 
deleteGeneProductAssociationspublic void deleteGeneProductAssociations(ArrayDesign arrayDesign) - Specified by:
- deleteGeneProductAssociationsin interface- ArrayDesignDao
 
 - 
findByShortNamepublic ArrayDesign findByShortName(String shortName) - Specified by:
- findByShortNamein interface- ArrayDesignDao
 
 - 
findByNamepublic Collection<ArrayDesign> findByName(String name) - Specified by:
- findByNamein interface- ArrayDesignDao
 
 - 
findpublic ArrayDesign find(ArrayDesign entity) 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 interface- BaseDao<ArrayDesign>
- Overrides:
- findin class- AbstractDao<ArrayDesign>
- Parameters:
- entity- the entity to look for.
- Returns:
- an entity that was found in the persistent storage, or null if no such entity was found.
 
 - 
findByAlternateNamepublic Collection<ArrayDesign> findByAlternateName(String queryString) - Specified by:
- findByAlternateNamein interface- ArrayDesignDao
 
 - 
findByManufacturerpublic Collection<ArrayDesign> findByManufacturer(String queryString) - Specified by:
- findByManufacturerin interface- ArrayDesignDao
 
 - 
findByTaxonpublic Collection<ArrayDesign> findByTaxon(Taxon taxon) - Specified by:
- findByTaxonin interface- ArrayDesignDao
 
 - 
getAllAssociatedBioAssayspublic Collection<BioAssay> getAllAssociatedBioAssays(ArrayDesign arrayDesign) - Specified by:
- getAllAssociatedBioAssaysin interface- ArrayDesignDao
 
 - 
getAuditEventspublic Map<Long,Collection<AuditEvent>> getAuditEvents(Collection<Long> ids) - Specified by:
- getAuditEventsin interface- ArrayDesignDao
 
 - 
getBioSequencespublic Map<CompositeSequence,BioSequence> getBioSequences(ArrayDesign arrayDesign) - Specified by:
- getBioSequencesin interface- ArrayDesignDao
 
 - 
getGenespublic Collection<Gene> getGenes(ArrayDesign arrayDesign) - Specified by:
- getGenesin interface- ArrayDesignDao
 
 - 
getExpressionExperimentspublic Collection<ExpressionExperiment> getExpressionExperiments(ArrayDesign arrayDesign) - Specified by:
- getExpressionExperimentsin interface- ArrayDesignDao
 
 - 
getExpressionExperimentsCountpublic long getExpressionExperimentsCount(ArrayDesign arrayDesign) Description copied from interface:ArrayDesignDaoObtain the number of associated expression experiments.This is much faster than looking up the size of ArrayDesignDao.getExpressionExperiments(ArrayDesign).- Specified by:
- getExpressionExperimentsCountin interface- ArrayDesignDao
 
 - 
getPerTaxonCountpublic Map<Taxon,Long> getPerTaxonCount() - Specified by:
- getPerTaxonCountin interface- ArrayDesignDao
 
 - 
getSwitchedExpressionExperimentspublic Collection<ExpressionExperiment> getSwitchedExpressionExperiments(ArrayDesign arrayDesign) Get the ids of experiments that "originally" used this platform, but which don't any more due to a platform switch.- Specified by:
- getSwitchedExpressionExperimentsin interface- ArrayDesignDao
- Parameters:
- arrayDesign- a platform for which the statistic is computed
- Returns:
- collection of experiment IDs.
 
 - 
getSwitchedExpressionExperimentsCountpublic Long getSwitchedExpressionExperimentsCount(ArrayDesign arrayDesign) Description copied from interface:ArrayDesignDaoCount the number of switchedExpressionExperimentfrom a given platform.- Specified by:
- getSwitchedExpressionExperimentsCountin interface- ArrayDesignDao
 
 - 
getTaxapublic Collection<Taxon> getTaxa(ArrayDesign arrayDesign) - Specified by:
- getTaxain interface- ArrayDesignDao
 
 - 
isMergedpublic Map<Long,Boolean> isMerged(Collection<Long> ids) - Specified by:
- isMergedin interface- ArrayDesignDao
 
 - 
isMergeepublic Map<Long,Boolean> isMergee(Collection<Long> ids) - Specified by:
- isMergeein interface- ArrayDesignDao
 
 - 
isSubsumedpublic Map<Long,Boolean> isSubsumed(Collection<Long> ids) - Specified by:
- isSubsumedin interface- ArrayDesignDao
 
 - 
isSubsumerpublic Map<Long,Boolean> isSubsumer(Collection<Long> ids) - Specified by:
- isSubsumerin interface- ArrayDesignDao
 
 - 
loadAlignmentspublic Map<CompositeSequence,Collection<BlatResult>> loadAlignments(ArrayDesign arrayDesign) - Specified by:
- loadAlignmentsin interface- ArrayDesignDao
 
 - 
loadCompositeSequencespublic Collection<CompositeSequence> loadCompositeSequences(ArrayDesign arrayDesign, int limit, int offset) - Specified by:
- loadCompositeSequencesin interface- ArrayDesignDao
 
 - 
doLoadValueObjectprotected ArrayDesignValueObject doLoadValueObject(ArrayDesign ad) Loads a single value objects for the given array design.- Specified by:
- doLoadValueObjectin class- AbstractVoEnabledDao<ArrayDesign,ArrayDesignValueObject>
- Parameters:
- ad- the array design to be converted to a value object
- Returns:
- a value object with properties of the given array design.
 
 - 
postProcessValueObjectsprotected void postProcessValueObjects(List<ArrayDesignValueObject> results) Description copied from class:AbstractVoEnabledDaoPost-process VOs in bulk.Use this as an opportunity to load extra informations that could not be populated in the initial AbstractVoEnabledDao.doLoadValueObject(Identifiable)orAbstractVoEnabledDao.doLoadValueObjects(Collection)- Overrides:
- postProcessValueObjectsin class- AbstractVoEnabledDao<ArrayDesign,ArrayDesignValueObject>
 
 - 
loadValueObjectsForEEpublic List<ArrayDesignValueObject> loadValueObjectsForEE(@Nullable Long eeId) - Specified by:
- loadValueObjectsForEEin interface- ArrayDesignDao
 
 - 
numAllCompositeSequenceWithBioSequencespublic long numAllCompositeSequenceWithBioSequences() - Specified by:
- numAllCompositeSequenceWithBioSequencesin interface- ArrayDesignDao
 
 - 
numAllCompositeSequenceWithBioSequencespublic long numAllCompositeSequenceWithBioSequences(Collection<Long> ids) - Specified by:
- numAllCompositeSequenceWithBioSequencesin interface- ArrayDesignDao
 
 - 
numAllCompositeSequenceWithBlatResultspublic long numAllCompositeSequenceWithBlatResults() - Specified by:
- numAllCompositeSequenceWithBlatResultsin interface- ArrayDesignDao
 
 - 
numAllCompositeSequenceWithBlatResultspublic long numAllCompositeSequenceWithBlatResults(Collection<Long> ids) - Specified by:
- numAllCompositeSequenceWithBlatResultsin interface- ArrayDesignDao
 
 - 
numAllCompositeSequenceWithGenespublic long numAllCompositeSequenceWithGenes() - Specified by:
- numAllCompositeSequenceWithGenesin interface- ArrayDesignDao
 
 - 
numAllCompositeSequenceWithGenespublic long numAllCompositeSequenceWithGenes(Collection<Long> ids) - Specified by:
- numAllCompositeSequenceWithGenesin interface- ArrayDesignDao
 
 - 
numAllGenespublic long numAllGenes() - Specified by:
- numAllGenesin interface- ArrayDesignDao
 
 - 
numAllGenespublic long numAllGenes(Collection<Long> ids) - Specified by:
- numAllGenesin interface- ArrayDesignDao
 
 - 
numBioSequencespublic long numBioSequences(ArrayDesign arrayDesign) - Specified by:
- numBioSequencesin interface- ArrayDesignDao
 
 - 
numBlatResultspublic long numBlatResults(ArrayDesign arrayDesign) - Specified by:
- numBlatResultsin interface- ArrayDesignDao
 
 - 
numCompositeSequencespublic long numCompositeSequences(ArrayDesign arrayDesign) - Specified by:
- numCompositeSequencesin interface- ArrayDesignDao
 
 - 
numCompositeSequenceWithBioSequencespublic long numCompositeSequenceWithBioSequences(ArrayDesign arrayDesign) - Specified by:
- numCompositeSequenceWithBioSequencesin interface- ArrayDesignDao
 
 - 
numCompositeSequenceWithBlatResultspublic long numCompositeSequenceWithBlatResults(ArrayDesign arrayDesign) - Specified by:
- numCompositeSequenceWithBlatResultsin interface- ArrayDesignDao
 
 - 
numCompositeSequenceWithGenespublic long numCompositeSequenceWithGenes(ArrayDesign arrayDesign) - Specified by:
- numCompositeSequenceWithGenesin interface- ArrayDesignDao
 
 - 
numExperimentspublic long numExperiments(ArrayDesign arrayDesign) - Specified by:
- numExperimentsin interface- ArrayDesignDao
 
 - 
numGenespublic long numGenes(ArrayDesign arrayDesign) - Specified by:
- numGenesin interface- ArrayDesignDao
 
 - 
removepublic void remove(ArrayDesign arrayDesign) Description copied from interface:BaseDaoRemove a persistent instance- Specified by:
- removein interface- BaseDao<ArrayDesign>
- Overrides:
- removein class- AbstractDao<ArrayDesign>
- Parameters:
- arrayDesign- the entity to be removed
 
 - 
removeBiologicalCharacteristicspublic void removeBiologicalCharacteristics(ArrayDesign arrayDesign) - Specified by:
- removeBiologicalCharacteristicsin interface- ArrayDesignDao
 
 - 
thawLitepublic void thawLite(ArrayDesign arrayDesign) Description copied from interface:ArrayDesignDaoLightly thaw the given platform.- Specified by:
- thawLitein interface- ArrayDesignDao
 
 - 
thawpublic void thaw(ArrayDesign arrayDesign) Description copied from interface:ArrayDesignDaoThaw the given platform as perArrayDesignDao.thawLite(ArrayDesign)with its probes and genes.- Specified by:
- thawin interface- ArrayDesignDao
 
 - 
updateSubsumingStatuspublic Boolean updateSubsumingStatus(ArrayDesign candidateSubsumer, ArrayDesign candidateSubsumee) - Specified by:
- updateSubsumingStatusin interface- ArrayDesignDao
 
 - 
getFilteringQueryprotected Query getFilteringQuery(@Nullable Filters filters, @Nullable Sort sort) Description copied from class:AbstractQueryFilteringVoEnabledDaoProduce a query for retrieving value objects after applying a set of filters and a given ordering.Note that if your implementation does not produce a ListofAbstractQueryFilteringVoEnabledDaowhenQuery.list()is invoked, you must overrideAbstractQueryFilteringVoEnabledDao.getValueObjectTransformer().The make the cached query (i.e. AbstractQueryFilteringVoEnabledDao.loadWithCache(Filters, Sort)behave the same, you also have to explicitly initialize any lazy relations inAbstractVoEnabledDao.doLoadValueObject(Identifiable)because the VO constructor will not initialize them.- Specified by:
- getFilteringQueryin class- AbstractQueryFilteringVoEnabledDao<ArrayDesign,ArrayDesignValueObject>
- Returns:
- a Querythat produce a list ofAbstractQueryFilteringVoEnabledDao
 
 - 
initializeCachedFilteringResultprotected void initializeCachedFilteringResult(ArrayDesign ad) Description copied from class:AbstractQueryFilteringVoEnabledDaoInitialize a result fromAbstractQueryFilteringVoEnabledDao.getFilteringQuery(Filters, Sort)retrieved from the HibernateStandardQueryCache.Lazy-loaded relations that are fetched in AbstractQueryFilteringVoEnabledDao.getFilteringQuery(Filters, Sort)must be initialized manually in this method to ensure that the entity has all the expected fields if they are retrieved from the second-level cache.- Specified by:
- initializeCachedFilteringResultin class- AbstractQueryFilteringVoEnabledDao<ArrayDesign,ArrayDesignValueObject>
 
 - 
getFilteringIdQueryprotected Query getFilteringIdQuery(@Nullable Filters filters, @Nullable Sort sort) Description copied from class:AbstractQueryFilteringVoEnabledDaoProduce a query that will be used to retrieve IDs ofAbstractQueryFilteringVoEnabledDao.getFilteringQuery(Filters, Sort).- Overrides:
- getFilteringIdQueryin class- AbstractQueryFilteringVoEnabledDao<ArrayDesign,ArrayDesignValueObject>
 
 - 
getFilteringCountQueryprotected Query getFilteringCountQuery(@Nullable Filters filters) Description copied from class:AbstractQueryFilteringVoEnabledDaoProduce a query that will be used to retrieve the size ofAbstractQueryFilteringVoEnabledDao.getFilteringQuery(Filters, Sort).- Overrides:
- getFilteringCountQueryin class- AbstractQueryFilteringVoEnabledDao<ArrayDesign,ArrayDesignValueObject>
- Returns:
- a Querywhich must return a singleLongvalue
 
 - 
configureFilterablePropertiesprotected void configureFilterableProperties(AbstractFilteringVoEnabledDao.FilterablePropertiesConfigurer configurer) Description copied from class:AbstractFilteringVoEnabledDaoRegister filterable properties.- Overrides:
- configureFilterablePropertiesin class- AbstractCuratableDao<ArrayDesign,ArrayDesignValueObject>
 
 - 
getFilterablePropertyMetaprotected AbstractFilteringVoEnabledDao.FilterablePropertyMeta getFilterablePropertyMeta(String propertyName) Description copied from class:AbstractCuratableDaoObtain various meta-information used to infer what to use in aFilterorSort.This is used by AbstractFilteringVoEnabledDao.getFilter(String, Filter.Operator, String)andFilteringDao.getSort(String, Sort.Direction, Sort.NullMode).Include filtering by lastUpdated,troubledandneedsAttentionfrom the associated curation details.- Overrides:
- getFilterablePropertyMetain class- AbstractCuratableDao<ArrayDesign,ArrayDesignValueObject>
- See Also:
- AbstractFilteringVoEnabledDao.getFilter(String, Filter.Operator, String),- AbstractFilteringVoEnabledDao.getFilter(String, Filter.Operator, Collection),- FilteringDao.getSort(String, Sort.Direction, Sort.NullMode)
 
 
- 
 
-