Package org.dbunit.dataset
Class RowFilterTable
java.lang.Object
org.dbunit.dataset.RowFilterTable
- All Implemented Interfaces:
IRowValueProvider,ITable
Filters table rows by using arbitrary column values of the table to check if a row should be filtered or not.
Implemented as a decorator for
Implemented as a decorator for
ITable.
See dbunit feature request at #1959771- Since:
- 2.3.0
- Version:
- $Revision$ $Date$
- Author:
- gommma, Last changed by: $Author$
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionRowFilterTable(ITable table, IRowFilter rowFilter) Creates a newITablewhere some rows can be filtered out from the original table -
Method Summary
Modifier and TypeMethodDescriptiongetColumnValue(String columnName) Returns the column value for the column with the given name of the currently processed rowintReturns this table row count.Returns this table metadata.Returns this table value for the specified row and column.
-
Constructor Details
-
RowFilterTable
Creates a newITablewhere some rows can be filtered out from the original table- Parameters:
table- The table to be wrappedrowFilter- The row filter that checks for every row whether or not it should be filtered- Throws:
DataSetException
-
-
Method Details
-
getTableMetaData
Description copied from interface:ITableReturns this table metadata.- Specified by:
getTableMetaDatain interfaceITable
-
getRowCount
public int getRowCount()Description copied from interface:ITableReturns this table row count.- Specified by:
getRowCountin interfaceITable
-
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
-
getColumnValue
Returns the column value for the column with the given name of the currently processed row- Specified by:
getColumnValuein interfaceIRowValueProvider- Parameters:
columnName- The db column name for which the value should be provided (current row's value)- Returns:
- The value of the given column in the current row
- Throws:
DataSetException- See Also:
-