public class BioSourceToSampleTransformer extends Object implements CollectionTransformer<BioSource,Sample>
Constructor and Description |
---|
BioSourceToSampleTransformer(DbControl dc) |
Modifier and Type | Method and Description |
---|---|
protected ItemQuery<Sample> |
createQuery()
Create a query for loading samples.
|
int |
transform(Collection<? extends BioSource> bioSources,
Collection<? super Sample> samples)
Add all samples that are children to any of the biosources in the
source collection.
|
private DbControl dc
public BioSourceToSampleTransformer(DbControl dc)
public int transform(Collection<? extends BioSource> bioSources, Collection<? super Sample> samples)
transform
in interface CollectionTransformer<BioSource,Sample>
bioSources
- The source collectionsamples
- The destination collectionprotected ItemQuery<Sample> createQuery()
transform
method. Subclasses may override this method to create an alternate query
(for example, with more filters).