|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.dbunit.database.PrimaryKeyFilteredTableWrapper
public class PrimaryKeyFilteredTableWrapper
This class is a wrapper for another table with the condition that only a subset of the original table will be available - the subset is defined by the set of primary keys that are allowed in the new table.
Field Summary | |
---|---|
protected org.slf4j.Logger |
logger
logger |
Fields inherited from interface org.dbunit.dataset.ITable |
---|
NO_VALUE |
Constructor Summary | |
---|---|
PrimaryKeyFilteredTableWrapper(ITable table,
java.util.Set allowedPKs)
Creates a PKFilteredTable given an original table and the allowed primary keys for that table. |
Method Summary | |
---|---|
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 |
Field Detail |
---|
protected final org.slf4j.Logger logger
Constructor Detail |
---|
public PrimaryKeyFilteredTableWrapper(ITable table, java.util.Set allowedPKs) throws DataSetException
table
- original tableallowedPKs
- primary keys allowed on the new table
DataSetException
- if something happened while getting the informationMethod Detail |
---|
public ITableMetaData getTableMetaData()
ITable
getTableMetaData
in interface ITable
public int getRowCount()
ITable
getRowCount
in interface ITable
public java.lang.Object getValue(int row, java.lang.String column) throws DataSetException
ITable
getValue
in interface ITable
NoSuchColumnException
- if specfied column name do not exist in
this table
RowOutOfBoundsException
- if specfied row is less than zero or
equals or greater than getRowCount
DataSetException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |