Package org.dbunit.dataset
Class SortedDataSet
java.lang.Object
org.dbunit.dataset.AbstractDataSet
org.dbunit.dataset.SortedDataSet
- All Implemented Interfaces:
IDataSet
Decorator that returns the
ITables of the decorated dataset
as SortedTables.- Since:
- Feb 19, 2003
- Version:
- $Revision$
- Author:
- Manuel Laflamme
-
Field Summary
Fields inherited from class org.dbunit.dataset.AbstractDataSet
_orderedTableNameMap -
Constructor Summary
ConstructorsConstructorDescriptionSortedDataSet(IDataSet dataSet) Creates a newSortedDataSetdecorating the given dataset. -
Method Summary
Modifier and TypeMethodDescriptionprotected ITableIteratorcreateIterator(boolean reversed) Creates an iterator which provides access to all tables of this datasetReturns the specified table.getTableMetaData(String tableName) Returns the specified table metadata.String[]Returns names of tables in this dataset in proper sequence.Methods inherited from class org.dbunit.dataset.AbstractDataSet
createTableNameMap, getTables, initialize, isCaseSensitiveTableNames, iterator, reverseIterator, toString
-
Constructor Details
-
SortedDataSet
Creates a newSortedDataSetdecorating the given dataset.- Parameters:
dataSet- the decorated dataset.- Throws:
DataSetException- if a table cannot be sorted.
-
-
Method Details
-
createIterator
Description copied from class:AbstractDataSetCreates an iterator which provides access to all tables of this dataset- Specified by:
createIteratorin classAbstractDataSet- Parameters:
reversed- Whether the created iterator should be a reversed one or not- Returns:
- The created
ITableIterator - Throws:
DataSetException- if the iterator cannot be created.
-
getTableNames
Description copied from interface:IDataSetReturns 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:
getTableNamesin interfaceIDataSet- Overrides:
getTableNamesin classAbstractDataSet- Returns:
- the table names, in proper sequence.
- Throws:
DataSetException- if the table names cannot be determined.
-
getTableMetaData
Description copied from interface:IDataSetReturns the specified table metadata.- Specified by:
getTableMetaDatain interfaceIDataSet- Overrides:
getTableMetaDatain classAbstractDataSet- Parameters:
tableName- the name of the table to look up.- Returns:
- the metadata of the specified table.
- Throws:
DataSetException
-
getTable
Description copied from interface:IDataSetReturns the specified table.- Specified by:
getTablein interfaceIDataSet- Overrides:
getTablein classAbstractDataSet- Parameters:
tableName- the name of the table to look up.- Returns:
- the specified table.
- Throws:
DataSetException
-