Package net.sf.basedb.util.listable
Class SampleToChildSampleTransformer
java.lang.Object
net.sf.basedb.util.listable.AbstractSourceItemTransformer
net.sf.basedb.util.listable.SampleToChildSampleTransformer
- All Implemented Interfaces:
SourceItemTransformer
Source item transformer implementation that transform sample items to their
child sample items. From the given set of sample ID:s the transformer will
recursively load as many child samples as possible. The source items
may optionally be included in the target set.
- Since:
- 3.5
- Author:
- Nicklas
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
private final boolean
-
Constructor Summary
ConstructorDescriptionSampleToChildSampleTransformer
(boolean includeSourcesInTarget) Create a new sample to child sample transformer.SampleToChildSampleTransformer
(boolean includeSourcesInTarget, boolean childrensThatPushOnly) Create a new sample to child sample transformer that only load children that has a subtype with "push annotations" set. -
Method Summary
Methods inherited from class net.sf.basedb.util.listable.AbstractSourceItemTransformer
getSourceItemType, getTargetItemType, safeIdList
-
Field Details
-
includeSourcesInTarget
private final boolean includeSourcesInTarget -
pushOnly
private final boolean pushOnly
-
-
Constructor Details
-
SampleToChildSampleTransformer
public SampleToChildSampleTransformer(boolean includeSourcesInTarget) Create a new sample to child sample transformer.- Parameters:
includeSourcesInTarget
- TRUE to include the source items in the target
-
SampleToChildSampleTransformer
public SampleToChildSampleTransformer(boolean includeSourcesInTarget, boolean childrensThatPushOnly) Create a new sample to child sample transformer that only load children that has a subtype with "push annotations" set.- Since:
- 3.19.5
-
-
Method Details
-
transform
Description copied from interface:SourceItemTransformer
Transform the given set of source item ID:s into a set of target item ID:s
-