Package org.dbunit.database
Class DatabaseTableIterator
java.lang.Object
org.dbunit.database.DatabaseTableIterator
- All Implemented Interfaces:
ITableIterator
ITableIterator over the tables of a live database connection.- Since:
- 1.x (Apr 12, 2003)
- Version:
- $Revision$ $Date$
- Author:
- Manuel Laflamme, Last changed by: $Author$
-
Constructor Summary
ConstructorsConstructorDescriptionDatabaseTableIterator(String[] tableNames, IDataSet dataSet) Creates an iterator over the given table names, resolved from the given dataset. -
Method Summary
-
Constructor Details
-
DatabaseTableIterator
Creates an iterator over the given table names, resolved from the given dataset.- Parameters:
tableNames- the names of the tables to iterate, in order.dataSet- the dataset to resolve tables from.
-
-
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.
-