Package net.sf.basedb.util.listable
Class ToExtractSourceItemTransformerFactory
java.lang.Object
net.sf.basedb.util.listable.AbstractSourceItemTransformerFactory
net.sf.basedb.util.listable.ToExtractSourceItemTransformerFactory
- All Implemented Interfaces:
SourceItemTransformerFactory
Transformer factory implementation for transforming to extracts. The current
implementation support transforming from:
SyncFilter.SourceItemTransform.PARENT_TO_CHILD
: BIOSOURCE, SAMPLE, EXTRACTSyncFilter.SourceItemTransform.CHILD_TO_PARENT
: EXTRACT, PHYSICALBIOASSAY, DERIVEDBIOASSAY, RAWBIOASSAY
- Since:
- 3.5
- Author:
- Nicklas
-
Field Summary
-
Constructor Summary
ConstructorDescriptionToExtractSourceItemTransformerFactory
(boolean includeChildrenThatPushToParent) -
Method Summary
Modifier and TypeMethodDescription(package private) static void
childToParentChain
(List<SourceItemTransformer> chain, Item sourceItemType, Item targetItemType, boolean includeChildrenThatPushToParent) Utility method for creating the transformer chain from child items up to extracts.create
(Item sourceItemType, SyncFilter.SourceItemTransform transform) Create a source item transformed that can transform between the given source item and theSourceItemTransformerFactory.getTargetItem()
.Methods inherited from class net.sf.basedb.util.listable.AbstractSourceItemTransformerFactory
getSupportedSourceItems, getTargetItem
-
Field Details
-
PARENT_TO_CHILD
-
CHILD_TO_PARENT
-
includeChildrenThatPushToParent
private final boolean includeChildrenThatPushToParent
-
-
Constructor Details
-
ToExtractSourceItemTransformerFactory
public ToExtractSourceItemTransformerFactory() -
ToExtractSourceItemTransformerFactory
public ToExtractSourceItemTransformerFactory(boolean includeChildrenThatPushToParent)
-
-
Method Details
-
create
Description copied from interface:SourceItemTransformerFactory
Create a source item transformed that can transform between the given source item and theSourceItemTransformerFactory.getTargetItem()
. Calling this method with an unsupported combination should result in a null return value. -
childToParentChain
static void childToParentChain(List<SourceItemTransformer> chain, Item sourceItemType, Item targetItemType, boolean includeChildrenThatPushToParent) Utility method for creating the transformer chain from child items up to extracts. Supported source item types are: RAWBIOASSAY, DERIVEDBIOASSAY, PHYSICALBIOASSAY and EXTRACT
-