public class RowFilterTable extends Object implements ITable, IRowValueProvider
ITable.
See dbunit feature request at #1959771| Constructor 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 filteredDataSetExceptionpublic ITableMetaData getTableMetaData()
ITablegetTableMetaData in interface ITablepublic int getRowCount()
ITablegetRowCount in interface ITablepublic Object getValue(int row, String column) throws DataSetException
ITablegetValue in interface ITablerow - 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 getRowCountDataSetExceptionpublic Object getColumnValue(String columnName) throws DataSetException
getColumnValue in interface IRowValueProvidercolumnName - The db column name for which the value should be provided (current row's value)DataSetExceptionIRowValueProvider.getColumnValue(java.lang.String)Copyright © 2002–2025. All rights reserved.