public class SampleToExtractTransformer extends java.lang.Object implements CollectionTransformer<Sample,Extract>
ChildrenTransformer
with the help of a
MultiStepCollectionTransformer
.Constructor and Description |
---|
SampleToExtractTransformer(DbControl dc)
Create a new Sample-to-extract transformer.
|
Modifier and Type | Method and Description |
---|---|
protected ItemQuery<Extract> |
createQuery()
Create a query for loading extracts.
|
int |
transform(java.util.Collection<? extends Sample> samples,
java.util.Collection<? super Extract> extracts)
Add all extracts that are children to any of the samples in the
source collection.
|
private final DbControl dc
public SampleToExtractTransformer(DbControl dc)
dc
- The DbControl to use for database accesspublic int transform(java.util.Collection<? extends Sample> samples, java.util.Collection<? super Extract> extracts)
transform
in interface CollectionTransformer<Sample,Extract>
samples
- The source collectionextracts
- The destination collectionprotected ItemQuery<Extract> createQuery()
transform
method. Subclasses may override this method to create an alternate query
(for example, with more filters).