Interface ArrayDesignDao
- All Superinterfaces:
BaseDao<ArrayDesign>, BaseVoEnabledDao<ArrayDesign, ArrayDesignValueObject>, CachedFilteringDao<ArrayDesign>, CachedFilteringVoEnabledDao<ArrayDesign, ArrayDesignValueObject>, CuratableDao<ArrayDesign>, FilteringDao<ArrayDesign>, FilteringVoEnabledDao<ArrayDesign, ArrayDesignValueObject>
- All Known Implementing Classes:
ArrayDesignDaoImpl
-
Nested Class Summary
Nested classes/interfaces inherited from interface FilteringDao
FilteringDao.ConjunctSpec -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProbes(ArrayDesign arrayDesign, Collection<CompositeSequence> newProbes) longcountBioSequences(ArrayDesign arrayDesign) longcountBlatResults(ArrayDesign arrayDesign) longlonglongcountCompositeSequencesWithBioSequences(ArrayDesign arrayDesign) longlongcountCompositeSequencesWithBlatResults(ArrayDesign arrayDesign) longcountCompositeSequencesWithGenes(boolean useGene2Cs) longcountCompositeSequencesWithGenes(Collection<ArrayDesign> arrayDesign, boolean useGene2Cs) longcountCompositeSequencesWithGenes(ArrayDesign arrayDesign, boolean useGene2Cs) longcountExpressionExperiments(ArrayDesign arrayDesign) Obtain the number of associated expression experiments.longcountGenes(boolean useGene2Cs) longcountGenes(ArrayDesign arrayDesign, boolean useGene2Cs) longcountSwitchedExpressionExperiments(ArrayDesign arrayDesign) Count the number of switchedExpressionExperimentfrom a given platform.voiddeleteAlignmentData(ArrayDesign arrayDesign) voiddeleteGeneProductAlignmentAssociations(ArrayDesign arrayDesign) voiddeleteGeneProductAnnotationAssociations(ArrayDesign arrayDesign) voiddeleteGeneProductAssociations(ArrayDesign arrayDesign) findByAlternateName(String queryString) findByManufacturer(String queryString) findByName(String name) findByShortName(String shortName) findByTaxon(Taxon taxon) findOneByAlternateName(String name) findOneByName(String name) getAllAssociatedBioAssays(ArrayDesign arrayDesign) getAuditEvents(Collection<Long> ids) getBioSequences(ArrayDesign arrayDesign) getExpressionExperiments(ArrayDesign arrayDesign) getGenes(ArrayDesign arrayDesign, boolean useGene2Cs) Obtain all the genes associated to the platform.getGenesByCompositeSequence(Collection<ArrayDesign> arrayDesign, boolean useGene2Cs) getGenesByCompositeSequence(ArrayDesign arrayDesign, boolean useGene2Cs) Obtain all the genes associated to the platform organized by corresponding design elements.getSwitchedExpressionExperiments(ArrayDesign arrayDesign) Obtain a collection ofExpressionExperimentidentifiers that have been switched from a given platform.getTaxaFromBioSequences(ArrayDesign arrayDesign) Obtain all the taxa associated to theBioSequenceof the given platform.isMerged(Collection<Long> ids) isMergee(Collection<Long> ids) isSubsumed(Collection<Long> ids) isSubsumer(Collection<Long> ids) loadAlignments(ArrayDesign arrayDesign) loadAsMap(Collection<Long> ids) Load a batch ofArrayDesigns by ID and return them keyed by ID for O(1) per-id lookup.loadBlacklistedValueObjects(Filters filters, Sort sort, int offset, int limit) loadBlacklistedValueObjectsByCursor(Filters filters, Sort sort, Cursor cursor, int limit) Cursor-mode counterpart toloadBlacklistedValueObjects(Filters, Sort, int, int): keyset pagination over the blacklisted platforms, applying the same shortName/accession blacklist filter that the offset-mode variant composes — seeCURSOR_PAGINATION_STEP1_PLAN.mdstep 1h.loadCompositeSequences(ArrayDesign arrayDesign, int limit, int offset) Load the platforms a dataset was ORIGINALLY submitted on, before any platform switch.loadValueObjectsForEE(Long eeId) voidremoveBiologicalCharacteristics(ArrayDesign arrayDesign) voidthaw(ArrayDesign arrayDesign) Thaw the given platform as perthawLite(ArrayDesign)with its probes and genes.voidthawCompositeSequences(ArrayDesign arrayDesign) Only thaw the design elements of a given platform.voidthawLite(ArrayDesign arrayDesign) Lightly thaw the given platform.booleanupdateSubsumingStatus(ArrayDesign candidateSubsumer, ArrayDesign candidateSubsumee) Methods inherited from interface BaseDao
countAll, create, create, find, findOrCreate, getElementClass, load, load, loadAll, loadReference, loadReference, reload, reload, remove, remove, save, save, streamAll, streamAll, update, updateMethods inherited from interface BaseVoEnabledDao
loadAllValueObjects, loadValueObject, loadValueObjectById, loadValueObjects, loadValueObjectsByIdsMethods inherited from interface CachedFilteringDao
countWithCache, loadIdsWithCache, loadWithCache, loadWithCacheMethods inherited from interface CachedFilteringVoEnabledDao
loadValueObjectsWithCache, loadValueObjectsWithCacheMethods inherited from interface CuratableDao
loadTroubledIds, updateCurationDetailsFromAuditEventMethods inherited from interface FilteringDao
count, getFilter, getFilter, getFilter, getFilter, getFilter, getFilter, getFilter, getFilterableProperties, getFilterablePropertyAllowedValues, getFilterablePropertyDescription, getFilterablePropertyType, getSort, isFilterablePropertyDeprecated, isFilterablePropertyUsingSubquery, load, load, loadIdsMethods inherited from interface FilteringVoEnabledDao
loadValueObjects, loadValueObjects, loadValueObjectsByCursor
-
Field Details
-
OBJECT_ALIAS
- See Also:
-
-
Method Details
-
loadAsMap
Load a batch ofArrayDesigns by ID and return them keyed by ID for O(1) per-id lookup. Issues a singleWHERE id IN (...)fetch (delegating to the base DAO'sBaseDao.load(Collection)), then collects to a map.Use this in place of N×
Session.get(ArrayDesign.class, id)loop patterns — see round-2 perf probe finding #8 (PERF_PROBE_REPORT_ROUND2.md): 20 sequential PK lookups (~138 ms each on the prod tunnel) cost ~2,766 ms, vs ~121 ms for a single batched fetch.The returned map preserves no ordering. The base loader fetches the AD root entity only — lazy collections (e.g.
designElements,compositeSequences) are NOT initialised; callers that need them must thaw explicitly to avoid a secondary N+1.- Parameters:
ids- platform IDs to load; an empty collection returns an empty map- Returns:
- a map of id →
ArrayDesignfor every id that resolved to a row
-
loadAllGenericGenePlatforms
Collection<ArrayDesign> loadAllGenericGenePlatforms() -
addProbes
-
deleteAlignmentData
-
deleteGeneProductAssociations
-
findByShortName
-
findByName
-
findOneByName
-
findByCompositeSequenceName
-
findByAlternateName
-
findOneByAlternateName
-
findByManufacturer
-
findByTaxon
-
getAllAssociatedBioAssays
-
getAuditEvents
-
getBioSequences
-
countBioSequences
-
getGenes
Obtain all the genes associated to the platform. -
countGenes
long countGenes(boolean useGene2Cs) -
countGenes
-
getGenesByCompositeSequence
Map<CompositeSequence, Set<Gene>> getGenesByCompositeSequence(ArrayDesign arrayDesign, boolean useGene2Cs) Obtain all the genes associated to the platform organized by corresponding design elements. -
getGenesByCompositeSequence
Map<CompositeSequence, Set<Gene>> getGenesByCompositeSequence(Collection<ArrayDesign> arrayDesign, boolean useGene2Cs) -
getExpressionExperiments
-
countExpressionExperiments
Obtain the number of associated expression experiments.This is much faster than looking up the size of
getExpressionExperiments(ArrayDesign).- See Also:
-
getPerTaxonCount
-
getSwitchedExpressionExperiments
Obtain a collection ofExpressionExperimentidentifiers that have been switched from a given platform.If you only need to count them, consider using the more performant
countSwitchedExpressionExperiments(ArrayDesign)instead. -
countSwitchedExpressionExperiments
Count the number of switchedExpressionExperimentfrom a given platform.- See Also:
-
getTaxaFromBioSequences
Obtain all the taxa associated to theBioSequenceof the given platform. -
isMerged
-
isMergee
-
isSubsumed
-
isSubsumer
-
loadAlignments
-
loadCompositeSequences
Collection<CompositeSequence> loadCompositeSequences(ArrayDesign arrayDesign, int limit, int offset) -
loadValueObjectsForEE
-
loadOriginalPlatformValueObjectsForEE
Load the platforms a dataset was ORIGINALLY submitted on, before any platform switch.A dataset can have more than one — its assays need not have come from a single submitted platform. A platform recorded as an original that is ALSO the one in use is a no-op switch and is left out, so an unswitched dataset answers with an empty list rather than echoing its current platform. That is the same rule the details VO applies, kept identical so the two cannot drift into disagreeing.
- See Also:
-
countCompositeSequencesWithBioSequences
long countCompositeSequencesWithBioSequences() -
countCompositeSequencesWithBlatResults
long countCompositeSequencesWithBlatResults() -
countCompositeSequencesWithGenes
long countCompositeSequencesWithGenes(boolean useGene2Cs) -
countBlatResults
-
countCompositeSequences
-
countCompositeSequencesWithBioSequences
-
countCompositeSequencesWithBlatResults
-
countCompositeSequencesWithGenes
-
countCompositeSequencesWithGenes
-
removeBiologicalCharacteristics
-
thawLite
Lightly thaw the given platform.This includes all the to-one relations, but not the design elements.
-
thaw
Thaw the given platform as perthawLite(ArrayDesign)with its probes and genes. -
thawCompositeSequences
Only thaw the design elements of a given platform. -
updateSubsumingStatus
-
deleteGeneProductAlignmentAssociations
-
deleteGeneProductAnnotationAssociations
-
loadBlacklistedValueObjects
Slice<ArrayDesignValueObject> loadBlacklistedValueObjects(@Nullable Filters filters, @Nullable Sort sort, int offset, int limit) -
loadBlacklistedValueObjectsByCursor
CursorPage<ArrayDesignValueObject> loadBlacklistedValueObjectsByCursor(@Nullable Filters filters, Sort sort, @Nullable Cursor cursor, int limit) Cursor-mode counterpart toloadBlacklistedValueObjects(Filters, Sort, int, int): keyset pagination over the blacklisted platforms, applying the same shortName/accession blacklist filter that the offset-mode variant composes — seeCURSOR_PAGINATION_STEP1_PLAN.mdstep 1h.
-