|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dbunit.dataset.RowFilterTable
public class RowFilterTable
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 ITable.
See dbunit feature request at #1959771
| Field Summary |
|---|
| Fields inherited from interface org.dbunit.dataset.ITable |
|---|
NO_VALUE |
| Constructor Summary | |
|---|---|
RowFilterTable(ITable table,
IRowFilter rowFilter)
Creates a new ITable where some rows can be filtered out from the original table |
|
| Method Summary | |
|---|---|
java.lang.Object |
getColumnValue(java.lang.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. |
java.lang.Object |
getValue(int row,
java.lang.String column)
Returns this table value for the specified row and column. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RowFilterTable(ITable table,
IRowFilter rowFilter)
throws DataSetException
ITable where some rows can be filtered out from the original table
table - The table to be wrappedrowFilter - The row filter that checks for every row whether or not it should be filtered
DataSetException| Method Detail |
|---|
public ITableMetaData getTableMetaData()
ITable
getTableMetaData in interface ITablepublic int getRowCount()
ITable
getRowCount in interface ITable
public java.lang.Object getValue(int row,
java.lang.String column)
throws DataSetException
ITable
getValue in interface ITablerow - The row index, starting with 0column - The name of the column
NoSuchColumnException - if specified column name do not exist in
this table
RowOutOfBoundsException - if specified row is less than zero or
equals or greater than getRowCount
DataSetException
public java.lang.Object getColumnValue(java.lang.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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||