Package org.dbunit.dataset
Class CachedTable
java.lang.Object
org.dbunit.dataset.AbstractTable
org.dbunit.dataset.DefaultTable
org.dbunit.dataset.CachedTable
- All Implemented Interfaces:
ITable
- Direct Known Subclasses:
CachedResultSetTable
ITable implementation that fully loads and caches another table's rows
and metadata in memory.- Since:
- Apr 10, 2003
- Version:
- $Revision$
- Author:
- Manuel Laflamme
-
Field Summary
-
Constructor Summary
ConstructorsModifierConstructorDescriptionCachedTable(ITable table) Creates a table that eagerly loads and caches all rows of the given table.protectedCachedTable(ITableMetaData metaData) Creates an empty cached table with the given metadata. -
Method Summary
Methods inherited from class org.dbunit.dataset.DefaultTable
addRow, addRow, addTableRows, getRowCount, getTableMetaData, getValue, setValue, toStringMethods inherited from class org.dbunit.dataset.AbstractTable
assertValidColumn, assertValidRowIndex, assertValidRowIndex, getColumnIndex
-
Constructor Details
-
CachedTable
Creates a table that eagerly loads and caches all rows of the given table.- Parameters:
table- the source table to load into memory.- Throws:
DataSetException- if loading the rows fails.
-
CachedTable
Creates an empty cached table with the given metadata.- Parameters:
metaData- the table metadata.
-