net.sf.basedb.util
Class BioAssaySetFilterUtil
java.lang.Object
net.sf.basedb.util.BioAssaySetFilterUtil
public class BioAssaySetFilterUtil
- extends Object
This is a utility class for plugins that filters bioassay set data.
- Version:
- 2.0
- Author:
- Nicklas
- Last modified
- $Date: 2010-04-20 10:02:16 +0200 (Tue, 20 Apr 2010) $
Method Summary |
static BioAssaySet |
createFilteredBioAssaySet(DbControl dc,
BioAssaySet parent,
List<BioAssay> bioAssays,
Job job,
DynamicFilter filter,
ProgressReporter progress)
|
static BioAssaySet |
createFilteredBioAssaySet(DbControl dc,
BioAssaySet parent,
List<BioAssay> bioAssays,
Job job,
Restriction filter,
ProgressReporter progress)
Create a filtered bioassay set from a parent bioassay set using
a simple restriction. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BioAssaySetFilterUtil
public BioAssaySetFilterUtil()
createFilteredBioAssaySet
public static BioAssaySet createFilteredBioAssaySet(DbControl dc,
BioAssaySet parent,
List<BioAssay> bioAssays,
Job job,
Restriction filter,
ProgressReporter progress)
throws InvalidDataException,
BaseException
- Create a filtered bioassay set from a parent bioassay set using
a simple restriction. The filtering is done by the
FilterBatcher.insert(net.sf.basedb.core.AbstractSqlQuery)
which is
very fast since most of the work is done by the database.
The calling code mustn't forget to commit the transaction.
- Parameters:
dc
- The DbControl
object to use for database acecssparent
- The parent bioassay set to start frombioAssays
- Only filter on the specified bio assays, if the list
is null or empty all bioassays will be filteredjob
- The job that the transformation should be linked to, or
null if this method isn't called by a jobfilter
- A filter expressionprogress
- A ProgressReporter
object (optional, current not used)
- Returns:
- A filtered bioassay set.
- Throws:
InvalidDataException
- If any of the required parameters is null
BaseException
- If creating a filtered bioassay set fails in some way.
createFilteredBioAssaySet
public static BioAssaySet createFilteredBioAssaySet(DbControl dc,
BioAssaySet parent,
List<BioAssay> bioAssays,
Job job,
DynamicFilter filter,
ProgressReporter progress)
throws InvalidDataException,
BaseException
- Throws:
InvalidDataException
BaseException