Class Thaws
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidthawBioAssay(BioAssay ba) Thaw the given BioAssay.static voidthawBioAssayDimension(BioAssayDimension bioAssayDimension) static voidstatic voidThaw the given BioMaterial.static voidthawCellTypeAssignment(CellTypeAssignment cellTypeAssignment) static voidthawCurationDetails(Curatable curatable) Thaw theCurationDetailsof a curatable entity, including the threelast*Eventassociations hanging off it.static voidthawDatabaseEntry(DatabaseEntry databaseEntry) static voidthawSingleCellDimension(SingleCellDimension singleCellDimension) Thaw a single-cell dimension.
-
Constructor Details
-
Thaws
public Thaws()
-
-
Method Details
-
thawDatabaseEntry
-
thawCurationDetails
Thaw theCurationDetailsof a curatable entity, including the threelast*Eventassociations hanging off it.Initializing the
CurationDetailson its own is not enough:lastTroubledEvent,lastNeedsAttentionEventandlastNoteUpdateEventare separately lazyAuditEventreferences, and every curatable value object reads all three in its constructor (seeAbstractCuratableValueObjectandCurationDetailsValueObject).A REST method that thaws through one
@Transactionalservice call and then builds the value object through another one spans two sessions, so whatever the thaw left as a proxy is dead by the time the VO is built. That is what madeGET /datasets/{id}/refreshanswerCould not initialize proxy [AuditEvent#…] - no sessionon every call, which in turn meant the post-write cache eviction the CLI performs never ran. -
thawBibliographicReference
-
thawBioAssayDimension
-
thawBioAssay
Thaw the given BioAssay.The corresponding biomaterial is also thawed with
thawBioMaterial(BioMaterial). -
thawBioAssayPlatforms
Thaw the platform-side associations of aBioAssaywithout walking itssampleUsedBioMaterialchain.Used by callers that batch-thaw the BioMaterial side via
BioMaterialDao#thawBioMaterialsForBioAssays, where the per-BA source-chain walk inthawBioAssay(BioAssay)would re-introduce the N+1 pattern the batched call exists to eliminate. The platform-side init remains a cheap proxy/eager touch (one or two round-trips per BA at most). -
thawBioMaterial
Thaw the given BioMaterial.The following fields are initialized: sourceTaxon, treatments and factorValues.experimentalFactor.
If the bioMaterial has a sourceBioMaterial, it is thawed as well, recursively. Circular references are detected and will result in a
IllegalStateException. -
thawSingleCellDimension
Thaw a single-cell dimension. -
thawCellTypeAssignment
-