Class CompositeSequenceFactory.Builder
java.lang.Object
ubic.gemma.core.util.test.fixture.CompositeSequenceFactory.Builder
- Enclosing class:
CompositeSequenceFactory
Fluent builder for a
CompositeSequence. All
withXxx(...) methods return this for chaining.
Single-use; call build() once.- Author:
- Phase 3 (Vision section 3 - test-fixture rewrite)
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Build, persist, and return the CS.withBioSequence(boolean v) If true (default), attach a persistentBioSequence(with a GenBankDatabaseEntry) to the CS.Set the taxon used for the auto-createdBioSequence.
-
Method Details
-
withName
-
withDescription
-
withArrayDesign
-
withTaxon
Set the taxon used for the auto-createdBioSequence. Ignored ifwithBioSequence(boolean)is false or if the AD has a primaryTaxon already (the BS taxon then mirrors that). -
withBioSequence
If true (default), attach a persistentBioSequence(with a GenBankDatabaseEntry) to the CS. If false, the CS is persisted without a biological characteristic. -
build
Build, persist, and return the CS. TheArrayDesignand optionalBioSequenceare persisted first (no cascade from CS); the CS itself is persisted viaCompositeSequenceService.create(CompositeSequence).
-