Package org.dbunit.database
Class PrimaryKeyFilteredTableWrapper
java.lang.Object
org.dbunit.database.PrimaryKeyFilteredTableWrapper
- All Implemented Interfaces:
ITable
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.
- Since:
- Sep 9, 2005
- Version:
- $Revision$
- Author:
- Felipe Leme (dbunit@felipeal.net)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPrimaryKeyFilteredTableWrapper(ITable table, Set allowedPKs) Creates a PKFilteredTable given an original table and the allowed primary keys for that table. -
Method Summary
Modifier and TypeMethodDescriptionintReturns this table row count.Returns this table metadata.Returns this table value for the specified row and column.
-
Field Details
-
logger
protected final org.slf4j.Logger loggerlogger
-
-
Constructor Details
-
PrimaryKeyFilteredTableWrapper
Creates a PKFilteredTable given an original table and the allowed primary keys for that table.- Parameters:
table- original tableallowedPKs- primary keys allowed on the new table- Throws:
DataSetException- if something happened while getting the information
-
-
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
-