Class DefaultDataSet

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

public class DefaultDataSet extends AbstractDataSet
Simple implementation of a dataset backed by ITable objects which can be added dynamically.
Since:
1.0 (Feb 18, 2002)
Version:
$Revision$ $Date$
Author:
Manuel Laflamme, Last changed by: $Author$
  • Constructor Details

    • DefaultDataSet

      public DefaultDataSet()
      Default constructor.
    • DefaultDataSet

      public DefaultDataSet(boolean caseSensitiveTableNames)
      Creates a default dataset which is empty initially
      Parameters:
      caseSensitiveTableNames - Whether or not table names should be case sensitive
      Since:
      2.4.2
    • DefaultDataSet

      public DefaultDataSet(ITable table) throws AmbiguousTableNameException
      Creates a default dataset consisting of the given table.
      Parameters:
      table - the table to add.
      Throws:
      AmbiguousTableNameException - never thrown for a single table.
    • DefaultDataSet

      public DefaultDataSet(ITable table1, ITable table2) throws AmbiguousTableNameException
      Creates a default dataset consisting of the given tables.
      Parameters:
      table1 - the first table to add.
      table2 - the second table to add.
      Throws:
      AmbiguousTableNameException - if the two tables have the same name.
    • DefaultDataSet

      public DefaultDataSet(ITable[] tables) throws AmbiguousTableNameException
      Creates a default dataset consisting of the given tables.
      Parameters:
      tables - the tables to add.
      Throws:
      AmbiguousTableNameException - if two tables have the same name.
    • DefaultDataSet

      public DefaultDataSet(ITable[] tables, boolean caseSensitiveTableNames) throws AmbiguousTableNameException
      Creates a default dataset which consists of the given tables
      Parameters:
      tables - the tables to add.
      caseSensitiveTableNames - Whether or not table names should be case sensitive
      Throws:
      AmbiguousTableNameException - if two tables have the same name.
      Since:
      2.4.2
  • Method Details