Class CompositeDataSet

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

public class CompositeDataSet extends AbstractDataSet
Combines multiple datasets into a single logical dataset.
Since:
Feb 19, 2002
Version:
$Revision$
Author:
Manuel Laflamme
  • Constructor Details

    • CompositeDataSet

      public CompositeDataSet(IDataSet[] dataSets) throws DataSetException
      Creates a composite dataset that combines specified datasets. Tables having the same name are merged into one table.
      Throws:
      DataSetException
    • CompositeDataSet

      public CompositeDataSet(IDataSet[] dataSets, boolean combine) throws DataSetException
      Creates a composite dataset that combines specified datasets.
      Parameters:
      dataSets - list of datasets
      combine - if true, tables having the same name are merged into one table.
      Throws:
      DataSetException
    • CompositeDataSet

      public CompositeDataSet(IDataSet[] dataSets, boolean combine, boolean caseSensitiveTableNames) throws DataSetException
      Creates a composite dataset that combines specified datasets.
      Parameters:
      dataSets - list of datasets
      combine - if true, tables having the same name are merged into one table.
      caseSensitiveTableNames - Whether or not table names are handled in a case sensitive way over all datasets.
      Throws:
      DataSetException
      Since:
      2.4.2
    • CompositeDataSet

      public CompositeDataSet(IDataSet dataSet1, IDataSet dataSet2) throws DataSetException
      Creates a composite dataset that combines the two specified datasets. Tables having the same name are merged into one table.
      Throws:
      DataSetException
    • CompositeDataSet

      public CompositeDataSet(IDataSet dataSet1, IDataSet dataSet2, boolean combine) throws DataSetException
      Creates a composite dataset that combines the two specified datasets.
      Parameters:
      dataSet1 - first dataset
      dataSet2 - second dataset
      combine - if true, tables having the same name are merged into one table.
      Throws:
      DataSetException
    • CompositeDataSet

      public CompositeDataSet(IDataSet dataSet, boolean combine) throws DataSetException
      Deprecated.
      This constructor is useless when the combine parameter is false. Use overload that doesn't have the combine argument.
      Creates a composite dataset that combines duplicate tables of the specified dataset.
      Parameters:
      dataSet - the dataset
      combine - if true, tables having the same name are merged into one table.
      Throws:
      DataSetException
    • CompositeDataSet

      public CompositeDataSet(IDataSet dataSet) throws DataSetException
      Creates a composite dataset that combines duplicate tables of the specified dataset.
      Parameters:
      dataSet - the dataset
      Throws:
      DataSetException
    • CompositeDataSet

      public CompositeDataSet(ITable[] tables) throws DataSetException
      Creates a composite dataset that combines tables having identical name. Tables having the same name are merged into one table.
      Throws:
      DataSetException
    • CompositeDataSet

      public CompositeDataSet(ITable[] tables, boolean caseSensitiveTableNames) throws DataSetException
      Creates a composite dataset that combines tables having identical name. Tables having the same name are merged into one table.
      Parameters:
      tables - The tables to merge to one dataset
      caseSensitiveTableNames - Whether or not table names are handled in a case sensitive way over all datasets.
      Throws:
      DataSetException
      Since:
      2.4.2
  • Method Details