Class CompositeTable

java.lang.Object
org.dbunit.dataset.AbstractTable
org.dbunit.dataset.CompositeTable
All Implemented Interfaces:
ITable

public class CompositeTable extends AbstractTable
Since:
Feb 17, 2002
Version:
$Revision$
Author:
Manuel Laflamme
  • Constructor Details

    • CompositeTable

      public CompositeTable(ITableMetaData metaData, ITable table)
      Creates a composite table that combines the specified metadata with the specified table.
    • CompositeTable

      public CompositeTable(ITableMetaData metaData, ITable[] tables)
      Creates a composite table that combines the specified metadata with the specified tables.
    • CompositeTable

      public CompositeTable(ITable table1, ITable table2)
      Creates a composite table that combines the specified specified tables. The metadata from the first table is used as metadata for the new table.
    • CompositeTable

      public CompositeTable(String newName, ITable table) throws DataSetException
      Creates a composite dataset that encapsulate the specified table with a new name.
      Throws:
      DataSetException
  • Method Details

    • getTableMetaData

      public ITableMetaData getTableMetaData()
      Description copied from interface: ITable
      Returns this table metadata.
    • getRowCount

      public int getRowCount()
      Description copied from interface: ITable
      Returns this table row count.
    • getValue

      public Object getValue(int row, String columnName) throws DataSetException
      Description copied from interface: ITable
      Returns this table value for the specified row and column.
      Parameters:
      row - The row index, starting with 0
      columnName - The name of the column
      Returns:
      The value
      Throws:
      DataSetException
    • toString

      public String toString()
      Overrides:
      toString in class Object