Interface EeWriteService
- All Known Implementing Classes:
EeWriteServiceImpl
ExpressionExperiment graphs.
This is the strangler-fig replacement for the EE-related portions of
the former ExpressionPersister (deleted in Persister-shrink S1;
the remaining polymorphic EE dispatch arms used only by test fixtures
have been folded into PersisterHelperImpl.doPersist).
- Author:
- pavlidis
-
Method Summary
Modifier and TypeMethodDescriptionPersist anExpressionExperimentgraph, synthesising theArrayDesignsForExperimentCacheviaExpressionExperimentPrePersistService.prepare(ExpressionExperiment)in the same transaction.Persist anExpressionExperimentgraph.persistBioAssay(BioAssay bioAssay) Persist a standaloneBioAssay.persistBioMaterial(BioMaterial bioMaterial) Persist a standaloneBioMaterial.
-
Method Details
-
create
ExpressionExperiment create(ExpressionExperiment ee, @Nullable ArrayDesignsForExperimentCache cache) Persist anExpressionExperimentgraph.The
cacheshould be obtained from a prior, separate transaction viaExpressionExperimentPrePersistService.prepare(ExpressionExperiment).- Parameters:
ee- the expression experiment to persistcache- cache of array designs already persisted in a prior transaction- Returns:
- the persisted entity
-
create
Persist anExpressionExperimentgraph, synthesising theArrayDesignsForExperimentCacheviaExpressionExperimentPrePersistService.prepare(ExpressionExperiment)in the same transaction.Prefer the two-argument
create(ExpressionExperiment, ArrayDesignsForExperimentCache)overload when a cache is available from a prior, separate transaction (recommended for large platforms). This single-argument overload exists for the few callers (CellXGene, SplitExperiment, etc.) that build the EE graph in one transaction and accept the in-transaction prepare.- Parameters:
ee- the expression experiment to persist- Returns:
- the persisted entity
-
persistBioAssay
Persist a standaloneBioAssay.Persister-shrink S4c: public typed entry point added so test fixtures (notably
PersistentDummyObjectHelper) can stop routing through the polymorphicPersisterHelper.persist(BioAssay)dispatch. The caller'sBioAssaymust reference an already-persistentArrayDesign; this entry point allocates fresh per-call caches (xdb / taxon) and anullArrayDesignsForExperimentCache— matching the priorpersisterHelper.persist(BioAssay)semantics for stand-alone BA fixtures.- Parameters:
bioAssay- the bioassay to persist- Returns:
- the persisted entity
-
persistBioMaterial
Persist a standaloneBioMaterial.Persister-shrink S4c: public typed entry point added so test fixtures (notably
PersistentDummyObjectHelper) can stop routing through the polymorphicPersisterHelper.persist(BioMaterial)dispatch. Allocates fresh per-call caches (xdb / taxon) — matches the priorpersisterHelper.persist(BioMaterial)semantics.- Parameters:
bioMaterial- the biomaterial to persist- Returns:
- the persisted entity
-