public class RowFilterTable extends Object implements ITable, IRowValueProvider
ITable
.
See dbunit feature request at #1959771Constructor and Description |
---|
RowFilterTable(ITable table,
IRowFilter rowFilter)
Creates a new
ITable where some rows can be filtered out from the original table |
Modifier and Type | Method and Description |
---|---|
Object |
getColumnValue(String columnName)
Returns the column value for the column with the given name of the currently processed row
|
int |
getRowCount()
Returns this table row count.
|
ITableMetaData |
getTableMetaData()
Returns this table metadata.
|
Object |
getValue(int row,
String column)
Returns this table value for the specified row and column.
|
public RowFilterTable(ITable table, IRowFilter rowFilter) throws DataSetException
ITable
where some rows can be filtered out from the original tabletable
- The table to be wrappedrowFilter
- The row filter that checks for every row whether or not it should be filteredDataSetException
public ITableMetaData getTableMetaData()
ITable
getTableMetaData
in interface ITable
public int getRowCount()
ITable
getRowCount
in interface ITable
public Object getValue(int row, String column) throws DataSetException
ITable
getValue
in interface ITable
row
- The row index, starting with 0column
- The name of the columnNoSuchColumnException
- if specified column name do not exist in
this tableRowOutOfBoundsException
- if specified row is less than zero or
equals or greater than getRowCount
DataSetException
public Object getColumnValue(String columnName) throws DataSetException
getColumnValue
in interface IRowValueProvider
columnName
- The db column name for which the value should be provided (current row's value)DataSetException
IRowValueProvider.getColumnValue(java.lang.String)
Copyright © 2002–2024. All rights reserved.