org.dbunit.dataset
Class SortedDataSet
java.lang.Object
org.dbunit.dataset.AbstractDataSet
org.dbunit.dataset.SortedDataSet
- All Implemented Interfaces:
- IDataSet
public class SortedDataSet
- extends AbstractDataSet
Decorator that returns the ITables of the decorated dataset
as SortedTables.
- Since:
- Feb 19, 2003
- Version:
- $Revision: 815 $
- Author:
- Manuel Laflamme
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SortedDataSet
public SortedDataSet(IDataSet dataSet)
throws DataSetException
- Throws:
DataSetException
createIterator
protected ITableIterator createIterator(boolean reversed)
throws DataSetException
- Description copied from class:
AbstractDataSet
- Creates an iterator which provides access to all tables of this dataset
- Specified by:
createIterator in class AbstractDataSet
- Parameters:
reversed - Whether the created iterator should be a reversed one or not
- Returns:
- The created
ITableIterator
- 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
occurrence 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- Overrides:
getTableNames in class AbstractDataSet
- 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- Overrides:
getTableMetaData in class AbstractDataSet
- Throws:
NoSuchTableException - if dataset do not contains the specified
table
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- Overrides:
getTable in class AbstractDataSet
- Throws:
NoSuchTableException - if dataset do not contains the specified
table
DataSetException
Copyright © 2002-2009. All Rights Reserved.