org.dbunit.dataset
Class CompositeDataSet

java.lang.Object
  extended byorg.dbunit.dataset.AbstractDataSet
      extended byorg.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: 1.15 $
Author:
Manuel Laflamme

Constructor Summary
CompositeDataSet(IDataSet dataSet)
          Creates a composite dataset that combines duplicate tables of the specified dataset.
CompositeDataSet(IDataSet[] dataSets)
          Creates a composite dataset that combines specified datasets.
CompositeDataSet(IDataSet[] dataSets, boolean combine)
          Creates a composite dataset that combines specified datasets.
CompositeDataSet(IDataSet dataSet, boolean combine)
          Deprecated. This constructor is useless when the combine parameter is false. Use overload that doesn't have the combine argument.
CompositeDataSet(IDataSet dataSet1, IDataSet dataSet2)
          Creates a composite dataset that combines the two specified datasets.
CompositeDataSet(IDataSet dataSet1, IDataSet dataSet2, boolean combine)
          Creates a composite dataset that combines the two specified datasets.
CompositeDataSet(ITable[] tables)
          Creates a composite dataset that combines tables having identical name.
 
Method Summary
protected  ITableIterator createIterator(boolean reversed)
           
 
Methods inherited from class org.dbunit.dataset.AbstractDataSet
cloneTables, getTable, getTableMetaData, getTableNames, getTables, iterator, reverseIterator, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.


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.

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.


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.

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.

CompositeDataSet

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

Parameters:
dataSet - the dataset

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.

Method Detail

createIterator

protected ITableIterator createIterator(boolean reversed)
                                 throws DataSetException
Specified by:
createIterator in class AbstractDataSet
Throws:
DataSetException


Copyright © 2002-2004 DbUnit.org. All Rights Reserved.