Class ColumnFilterTable

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

public class ColumnFilterTable extends Object implements ITable
A table that filters some columns out from the original table.
Since:
2.4.0
Version:
$Revision$ $Date$
Author:
gommma (gommma AT users.sourceforge.net), Last changed by: $Author$
  • Constructor Details

    • ColumnFilterTable

      public ColumnFilterTable(ITable table, IColumnFilter columnFilter) throws DataSetException
      Parameters:
      table - The table from which some columns should be filtered
      columnFilter - The filter defining which columns to be filtered
      Throws:
      DataSetException
  • Method Details

    • getRowCount

      public int getRowCount()
      Description copied from interface: ITable
      Returns this table row count.
      Specified by:
      getRowCount in interface ITable
    • getTableMetaData

      public ITableMetaData getTableMetaData()
      Description copied from interface: ITable
      Returns this table metadata.
      Specified by:
      getTableMetaData in interface ITable
    • getValue

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

      public ITableMetaData getOriginalMetaData()
    • toString

      public String toString()
      Overrides:
      toString in class Object