Package org.dbunit.dataset
Class CaseInsensitiveDataSet
java.lang.Object
org.dbunit.dataset.AbstractDataSet
org.dbunit.dataset.CaseInsensitiveDataSet
- All Implemented Interfaces:
IDataSet
Deprecated.
All IDataSet implementations are case insensitive since DbUnit 1.5 - may change again since tablenames on RDBMSes can be case sensitive
Allows access to a decorated dataset in a case insensitive way. Dataset
implementations provided by the framework are case sensitive. This class
allows using them in situation where case sensitiveness is not desirable.
- Since:
- 1.0
- Version:
- $Revision$ $Date$
- Author:
- Manuel Laflamme, Last changed by: $Author$
-
Field Summary
Fields inherited from class org.dbunit.dataset.AbstractDataSet
_orderedTableNameMap -
Constructor Summary
ConstructorsConstructorDescriptionCaseInsensitiveDataSet(IDataSet dataSet) Deprecated.Creates a case-insensitive view of the given dataset. -
Method Summary
Modifier and TypeMethodDescriptionprotected ITableIteratorcreateIterator(boolean reversed) Deprecated.Creates an iterator which provides access to all tables of this datasetDeprecated.Returns the specified table.getTableMetaData(String tableName) Deprecated.Returns the specified table metadata.String[]Deprecated.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
-
CaseInsensitiveDataSet
public CaseInsensitiveDataSet(IDataSet dataSet) throws AmbiguousTableNameException, DataSetException Deprecated.Creates a case-insensitive view of the given dataset.- Parameters:
dataSet- the dataset to decorate.- Throws:
AmbiguousTableNameException- if two table names are equal case-insensitively.DataSetException- if reading the dataset's tables fails.
-
-
Method Details
-
createIterator
Deprecated.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
Deprecated.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
Deprecated.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
Deprecated.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
-