org.dbunit.database
Class DatabaseTableIterator

java.lang.Object
  extended byorg.dbunit.database.DatabaseTableIterator
All Implemented Interfaces:
ITableIterator

public class DatabaseTableIterator
extends java.lang.Object
implements ITableIterator

Since:
Apr 12, 2003
Version:
$Revision: 1.4 $
Author:
Manuel Laflamme

Constructor Summary
DatabaseTableIterator(java.lang.String[] tableNames, IDataSet dataSet)
           
 
Method Summary
 ITable getTable()
          Returns the current table.
 ITableMetaData getTableMetaData()
          Returns the metadata of the current table.
 boolean next()
          Position this iterator to the next table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatabaseTableIterator

public DatabaseTableIterator(java.lang.String[] tableNames,
                             IDataSet dataSet)
Method Detail

next

public boolean next()
             throws DataSetException
Description copied from interface: ITableIterator
Position 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:
next in interface ITableIterator
Returns:
true if the new current table is valid; false if there are no more table
Throws:
DataSetException

getTableMetaData

public ITableMetaData getTableMetaData()
                                throws DataSetException
Description copied from interface: ITableIterator
Returns the metadata of the current table.

Specified by:
getTableMetaData in interface ITableIterator
Throws:
DataSetException

getTable

public ITable getTable()
                throws DataSetException
Description copied from interface: ITableIterator
Returns the current table.

Specified by:
getTable in interface ITableIterator
Throws:
DataSetException


Copyright © 2002-2004 DbUnit.org. All Rights Reserved.