Package org.dbunit.dataset
Class TableDecoratorDataSet
java.lang.Object
org.dbunit.dataset.AbstractDataSet
org.dbunit.dataset.TableDecoratorDataSet
- All Implemented Interfaces:
IDataSet
Decorates a dataset to allow decorating the returned
ITables (and
ITableMetaDatas, by extension). Intended to be used for things like
filtering out columns. Do not use this to filter out entire tables; use
FilteredDataSet for that.- Since:
- 3.0.0
- Author:
- rcd (rcd AT users.sourceforge.net)
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.dbunit.dataset.AbstractDataSet
_orderedTableNameMap -
Constructor Summary
ConstructorsConstructorDescriptionTableDecoratorDataSet(IDataSet dataSet, TableDecoratorDataSet.TableDecoratorFunction decoratorFunction) -
Method Summary
Modifier and TypeMethodDescriptionprotected ITableIteratorcreateIterator(boolean reversed) Creates an iterator which provides access to all tables of this datasetMethods inherited from class org.dbunit.dataset.AbstractDataSet
createTableNameMap, getTable, getTableMetaData, getTableNames, getTables, initialize, isCaseSensitiveTableNames, iterator, reverseIterator, toString
-
Constructor Details
-
TableDecoratorDataSet
public TableDecoratorDataSet(IDataSet dataSet, TableDecoratorDataSet.TableDecoratorFunction decoratorFunction)
-
-
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
-