Package org.dbunit.dataset
Class LowerCaseDataSet
java.lang.Object
org.dbunit.dataset.AbstractDataSet
org.dbunit.dataset.LowerCaseDataSet
- All Implemented Interfaces:
IDataSet
Specialized IDataSet decorator that convert the table name and
column names to lower case. Used in DbUnit own test suite to verify that
operations are case insensitive.
- Since:
- Feb 14, 2003
- Version:
- $Revision$
- Author:
- Manuel Laflamme
-
Field Summary
Fields inherited from class org.dbunit.dataset.AbstractDataSet
_orderedTableNameMap -
Constructor Summary
ConstructorsConstructorDescriptionLowerCaseDataSet(IDataSet dataSet) Creates a dataset that lower-cases the table and column names of the given dataset.LowerCaseDataSet(ITable table) Creates a dataset that lower-cases the table and column names of the given table.LowerCaseDataSet(ITable[] tables) Creates a dataset that lower-cases the table and column names of the given tables. -
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
-
LowerCaseDataSet
Creates a dataset that lower-cases the table and column names of the given table.- Parameters:
table- the table to decorate.- Throws:
DataSetException- if the dataset cannot be built.
-
LowerCaseDataSet
Creates a dataset that lower-cases the table and column names of the given tables.- Parameters:
tables- the tables to decorate.- Throws:
DataSetException- if the dataset cannot be built.
-
LowerCaseDataSet
Creates a dataset that lower-cases the table and column names of the given dataset.- Parameters:
dataSet- the dataset to decorate.- Throws:
DataSetException- if the dataset cannot be built.
-
-
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
-