2.17.2: 2011-06-17

net.sf.basedb.util
Class BioAssaySetFilterUtil

java.lang.Object
  extended by 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) $

Constructor Summary
BioAssaySetFilterUtil()
           
 
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
 

Constructor Detail

BioAssaySetFilterUtil

public BioAssaySetFilterUtil()
Method Detail

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 acecss
parent - The parent bioassay set to start from
bioAssays - Only filter on the specified bio assays, if the list is null or empty all bioassays will be filtered
job - The job that the transformation should be linked to, or null if this method isn't called by a job
filter - A filter expression
progress - 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

2.17.2: 2011-06-17