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