Package net.sf.basedb.util
Class BioAssaySetFilterUtil
java.lang.Object
net.sf.basedb.util.BioAssaySetFilterUtil
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 (ti, 20 apr 2010) $
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.static BioAssaySet
createFilteredBioAssaySet
(DbControl dc, BioAssaySet parent, List<BioAssay> bioAssays, Job job, DynamicFilter filter, ProgressReporter progress)
-
Constructor Details
-
BioAssaySetFilterUtil
public BioAssaySetFilterUtil()
-
-
Method Details
-
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 theFilterBatcher.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
- TheDbControl
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
- AProgressReporter
object (optional, current not used)- Returns:
- A filtered bioassay set.
- Throws:
InvalidDataException
- If any of the required parameters is nullBaseException
- 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
-