Class BioAssayFactory.Builder
java.lang.Object
ubic.gemma.core.util.test.fixture.BioAssayFactory.Builder
- Enclosing class:
BioAssayFactory
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build, persist, and return the BA.Build the BA WITHOUT persisting it.withAccession(boolean v) withIsOutlier(boolean v) withSequencePairedReads(boolean v) Set the taxon to use when auto-creating theBioMaterialandArrayDesigndefaults.
-
Method Details
-
withName
-
withBioMaterial
-
withArrayDesign
-
withTaxon
Set the taxon to use when auto-creating theBioMaterialandArrayDesigndefaults. Ignored if both are supplied viawithBioMaterial(BioMaterial)andwithArrayDesign(ArrayDesign). -
withAccession
-
withIsOutlier
-
withSequencePairedReads
-
build
Build, persist, and return the BA. TheBioMaterialandArrayDesignare persisted first (no cascade from BA); the BA itself is persisted viaSecurableBaseImmutableService.create(BioAssay)so the ACL-creation listener fires. -
buildTransient
Build the BA WITHOUT persisting it. TheBioMaterialandArrayDesignare still persisted (no cascade from BA), and the inverse sideBM.bioAssaysUsedInis updated. The returned BA is transient and ready to be added to anExpressionExperiment'sbioAssayscollection (which cascades the persist).This is the path
ExperimentFactoryuses when building EE-attached BAs; the EE cascade handles the BA persist.
-