Package org.dbunit.dataset
Class DefaultTableIterator
java.lang.Object
org.dbunit.dataset.DefaultTableIterator
- All Implemented Interfaces:
ITableIterator
ITableIterator over a fixed, in-memory array of ITables.- Since:
- Apr 5, 2003
- Version:
- $Revision$
- Author:
- Manuel Laflamme
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultTableIterator(ITable[] tables) Creates an iterator over the given tables, in their given order.DefaultTableIterator(ITable[] tables, boolean reversed) Creates an iterator over the given tables, optionally in reverse order. -
Method Summary
-
Constructor Details
-
DefaultTableIterator
Creates an iterator over the given tables, in their given order.- Parameters:
tables- the tables to iterate over.
-
DefaultTableIterator
Creates an iterator over the given tables, optionally in reverse order.- Parameters:
tables- the tables to iterate over.reversed-trueto iterate in reverse order.
-
-
Method Details
-
next
Description copied from interface:ITableIteratorPosition this iterator to the next table. The iterator is initially positioned before the first table; the first call to the method next makes the first table the current table; the second call makes the second table the current table, and so on.- Specified by:
nextin interfaceITableIterator- Returns:
trueif the new current table is valid;falseif there are no more table- Throws:
DataSetException- if advancing to the next table fails.
-
getTableMetaData
Description copied from interface:ITableIteratorReturns the metadata of the current table.- Specified by:
getTableMetaDatain interfaceITableIterator- Returns:
- the metadata of the current table.
- Throws:
DataSetException- if retrieving the metadata fails.
-
getTable
Description copied from interface:ITableIteratorReturns the current table.- Specified by:
getTablein interfaceITableIterator- Returns:
- the current table.
- Throws:
DataSetException- if retrieving the table fails.
-