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
public class ToExtractSourceItemTransformerFactory extends AbstractSourceItemTransformerFactory
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
Fields Modifier and Type Field Description private static Item[]
CHILD_TO_PARENT
private static Item[]
PARENT_TO_CHILD
-
Constructor Summary
Constructors Constructor Description ToExtractSourceItemTransformerFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static void
childToParentChain(List<SourceItemTransformer> chain, Item sourceItemType, Item targetItemType)
Utility method for creating the transformer chain from child items up to extracts.SourceItemTransformer
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
-
-
-
-
Method Detail
-
create
public SourceItemTransformer create(Item sourceItemType, SyncFilter.SourceItemTransform transform)
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)
Utility method for creating the transformer chain from child items up to extracts. Supported source item types are: RAWBIOASSAY, DERIVEDBIOASSAY, PHYSICALBIOASSAY and EXTRACT
-
-