Package net.sf.basedb.util.listable
Class CollectExtracts
java.lang.Object
net.sf.basedb.util.listable.CollectExtracts
Collect extracts seen on derived bioassays and raw bioassays that
has been loaded by other transformers. Use the
collectFromDerivedBioAssays(boolean)
and collectFromRawBioAssays()
methods to create transformers that can be inserted
into the chain of SourceItemTransformerChain
.- Since:
- 3.5
- Author:
- Nicklas
-
Nested Class Summary
Modifier and TypeClassDescription(package private) class
Transformer implementation that collect the child extracts from the source or collected extracts.(package private) class
Transformer implementation that given a set of derived bioassays load their linked extracts and store that in the parent class.(package private) class
Transformer implementation that store the given set of extracts in the parent class.(package private) class
Transformer implementation that given a set of raw bioassays load their linked extracts and store that in the parent class.(package private) class
Transformer implementation that collect the parent extracts from the source or collected extracts.(package private) class
Transformer implementation that reset the collected extracts before forwarding the call to the parent transformer. -
Field Summary
-
Constructor Summary
ConstructorDescriptionCreate a new derived bioassay to physical bioassay transformer. -
Method Summary
Modifier and TypeMethodDescriptioncollectChildrenOfCollected
(boolean includeCollected) The created transformer collect the ID:s of all child extracts to the already collected extracts and store them in thegetCollectedChildren()
.collectChildrenOfSource
(boolean includeSource) The created transformer collect the ID:s of all child extracts to the source extracts and store them in thegetCollectedChildren()
.collectFromDerivedBioAssays
(boolean loadParents) The created transformer collect the ID:s of all extracts linked from the source derived bioassays and then return the same set of derived bioassays again.The created transformer collect the ID:s of all extracts in the source collection and return same set of extracts again.The created transformer collect the ID:s of all extracts linked from the source raw bioassays and then return the same set of raw bioassays again.collectParentsOfCollected
(boolean includeCollected) The created transformer collect the ID:s of all parent extracts to the already collected extracts and store them in thegetCollectedParents()
.collectParentsOfSource
(boolean includeSource) The created transformer collect the ID:s of all parent extracts to the source extracts and store them in thegetCollectedParents()
.Get all extracts that has been collected.Get child extracts that was collected by thecollectChildrenOfCollected(boolean)
and/orcollectChildrenOfSource(boolean)
collectors.Get parent extracts that was collected by thecollectParentsOfSource(boolean)
orcollectParentsOfCollected(boolean)
collector.(package private) void
Clear all collected extracts in order to prepare for a new collection.private SourceItemTransformer
wrapForReset
(SourceItemTransformer transformer) Wraps the parent transformer with a ResetCollected transformer the first time this method is called.
-
Field Details
-
collected
-
parents
-
children
-
needWrapper
private boolean needWrapper
-
-
Constructor Details
-
CollectExtracts
public CollectExtracts()Create a new derived bioassay to physical bioassay transformer.
-
-
Method Details
-
resetCollected
void resetCollected()Clear all collected extracts in order to prepare for a new collection.- Since:
- 3.17
-
wrapForReset
Wraps the parent transformer with a ResetCollected transformer the first time this method is called. If called more than once, the parent is return unwrapped.- Since:
- 3.17
-
collectFromDerivedBioAssays
The created transformer collect the ID:s of all extracts linked from the source derived bioassays and then return the same set of derived bioassays again. If loadParents is set, extract ID:s will also be collected from all parent derived bioassays (as loaded byDerivedBioAssayToParentDerivedBioAssayTransformer
). -
collectFromRawBioAssays
The created transformer collect the ID:s of all extracts linked from the source raw bioassays and then return the same set of raw bioassays again. -
collectFromExtracts
The created transformer collect the ID:s of all extracts in the source collection and return same set of extracts again. -
collectParentsOfCollected
The created transformer collect the ID:s of all parent extracts to the already collected extracts and store them in thegetCollectedParents()
. If the 'includeCollected' flag is set, the collected extracts are included among the parents. -
collectParentsOfSource
The created transformer collect the ID:s of all parent extracts to the source extracts and store them in thegetCollectedParents()
. If the 'includeSource' flag is set, the source extracts are included among the parents. -
collectChildrenOfCollected
The created transformer collect the ID:s of all child extracts to the already collected extracts and store them in thegetCollectedChildren()
. If the 'includeCollected' flag is set, the collected extracts are included among the children. -
collectChildrenOfSource
The created transformer collect the ID:s of all child extracts to the source extracts and store them in thegetCollectedChildren()
. If the 'includeSource' flag is set, the source extracts are included among the parents. -
getCollected
Get all extracts that has been collected. -
getCollectedParents
Get parent extracts that was collected by thecollectParentsOfSource(boolean)
orcollectParentsOfCollected(boolean)
collector. -
getCollectedChildren
Get child extracts that was collected by thecollectChildrenOfCollected(boolean)
and/orcollectChildrenOfSource(boolean)
collectors.
-