Package org.dbunit.dataset
Class ColumnFilterTable
java.lang.Object
org.dbunit.dataset.ColumnFilterTable
- All Implemented Interfaces:
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$
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionColumnFilterTable(ITable table, IColumnFilter columnFilter) Creates a table that filters some columns out from the given table. -
Method Summary
Modifier and TypeMethodDescriptionReturns the metadata of the original, unfiltered table.intReturns this table row count.Returns this table metadata.Returns this table value for the specified row and column.toString()
-
Constructor Details
-
ColumnFilterTable
Creates a table that filters some columns out from the given table.- Parameters:
table- The table from which some columns should be filteredcolumnFilter- The filter defining which columns to be filtered- Throws:
DataSetException- if the filtered metadata cannot be built.
-
-
Method Details
-
getRowCount
public int getRowCount()Description copied from interface:ITableReturns this table row count.- Specified by:
getRowCountin interfaceITable- Returns:
- this table row count.
-
getTableMetaData
Description copied from interface:ITableReturns this table metadata.- Specified by:
getTableMetaDatain interfaceITable- Returns:
- this table metadata.
-
getValue
Description copied from interface:ITableReturns this table value for the specified row and column.- Specified by:
getValuein interfaceITable- Parameters:
row- The row index, starting with 0column- The name of the column- Returns:
- The value
- Throws:
DataSetException
-
getOriginalMetaData
Returns the metadata of the original, unfiltered table.- Returns:
- the metadata of the original, unfiltered table.
-
toString
-