org.dbunit.dataset
Class AbstractDataSet

java.lang.Object
  extended byorg.dbunit.dataset.AbstractDataSet
All Implemented Interfaces:
IDataSet
Direct Known Subclasses:
CachedDataSet, CaseInsensitiveDataSet, CompositeDataSet, DatabaseDataSet, DefaultDataSet, FilteredDataSet, FlatDtdDataSet, ForwardOnlyDataSet, LowerCaseDataSet, QueryDataSet, ReplacementDataSet, SortedDataSet, StreamingDataSet, XlsDataSet

public abstract class AbstractDataSet
extends java.lang.Object
implements IDataSet

This abstract class provides the basic implementation of the IDataSet interface. Subclass are only required to implement the createIterator(boolean) method.

Since:
Feb 22, 2002
Version:
$Revision: 1.11 $
Author:
Manuel Laflamme

Constructor Summary
AbstractDataSet()
           
 
Method Summary
protected  ITable[] cloneTables(ITable[] tables)
           
protected abstract  ITableIterator createIterator(boolean reversed)
           
 ITable getTable(java.lang.String tableName)
          Returns the specified table.
 ITableMetaData getTableMetaData(java.lang.String tableName)
          Returns the specified table metadata.
 java.lang.String[] getTableNames()
          Returns names of tables in this dataset in proper sequence.
 ITable[] getTables()
          Returns tables in this dataset in proper sequence.
 ITableIterator iterator()
          Returns an iterator over the tables in this dataset in proper sequence.
 ITableIterator reverseIterator()
          Returns an iterator over the tables in this dataset in reverse sequence.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractDataSet

public AbstractDataSet()
Method Detail

cloneTables

protected ITable[] cloneTables(ITable[] tables)

createIterator

protected abstract ITableIterator createIterator(boolean reversed)
                                          throws DataSetException
Throws:
DataSetException

getTableNames

public java.lang.String[] getTableNames()
                                 throws DataSetException
Description copied from interface: IDataSet
Returns names of tables in this dataset in proper sequence. Multiple occurence of the same name may be returned if multiple tables having the same name are present in the dataset.

Specified by:
getTableNames in interface IDataSet
Throws:
DataSetException

getTableMetaData

public ITableMetaData getTableMetaData(java.lang.String tableName)
                                throws DataSetException
Description copied from interface: IDataSet
Returns the specified table metadata.

Specified by:
getTableMetaData in interface IDataSet
Throws:
DataSetException

getTable

public ITable getTable(java.lang.String tableName)
                throws DataSetException
Description copied from interface: IDataSet
Returns the specified table.

Specified by:
getTable in interface IDataSet
Throws:
DataSetException

getTables

public ITable[] getTables()
                   throws DataSetException
Description copied from interface: IDataSet
Returns tables in this dataset in proper sequence. Multiple tables having the same name but different data may be returned.

Specified by:
getTables in interface IDataSet
Throws:
DataSetException

iterator

public ITableIterator iterator()
                        throws DataSetException
Description copied from interface: IDataSet
Returns an iterator over the tables in this dataset in proper sequence.

Specified by:
iterator in interface IDataSet
Throws:
DataSetException

reverseIterator

public ITableIterator reverseIterator()
                               throws DataSetException
Description copied from interface: IDataSet
Returns an iterator over the tables in this dataset in reverse sequence.

Specified by:
reverseIterator in interface IDataSet
Throws:
DataSetException

toString

public java.lang.String toString()


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