Class FilteredDataSet

java.lang.Object
org.dbunit.dataset.AbstractDataSet
org.dbunit.dataset.FilteredDataSet
All Implemented Interfaces:
IDataSet

public class FilteredDataSet extends AbstractDataSet
Decorates a dataset and exposes only some tables from it. Can be used with different filtering strategies.
Since:
Feb 22, 2002
Version:
$Revision$
Author:
Manuel Laflamme, Last changed by: Luke Cann
See Also:
  • Constructor Details

    • FilteredDataSet

      public FilteredDataSet(String[] tableNames, IDataSet dataSet) throws AmbiguousTableNameException
      Creates a FilteredDataSet that decorates the specified dataset and exposes only the specified tables using SequenceTableFilter as filtering strategy.
      Parameters:
      tableNames - the names of the tables to expose, in the order they should be exposed.
      dataSet - the dataset to decorate.
      Throws:
      AmbiguousTableNameException - If the given tableNames array contains ambiguous names
    • FilteredDataSet

      public FilteredDataSet(ITableFilter filter, IDataSet dataSet)
      Creates a FilteredDataSet that decorates the specified dataset and exposes only the tables allowed by the specified filter.
      Parameters:
      filter - the filtering strategy
      dataSet - the filtered dataset
  • Method Details