org.dbunit.dataset
Class CaseInsensitiveDataSet

java.lang.Object
  extended by org.dbunit.dataset.AbstractDataSet
      extended by 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

public class CaseInsensitiveDataSet
extends AbstractDataSet

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: 841 $ $Date: 2008-10-20 21:09:07 +0200 (Mon, 20 Oct 2008) $
Author:
Manuel Laflamme, Last changed by: $Author: gommma $

Constructor Summary
CaseInsensitiveDataSet(IDataSet dataSet)
          Deprecated.  
 
Method Summary
protected  ITableIterator createIterator(boolean reversed)
          Deprecated. Creates an iterator which provides access to all tables of this dataset
 ITable getTable(String tableName)
          Deprecated. Returns the specified table.
 ITableMetaData getTableMetaData(String tableName)
          Deprecated. Returns the specified table metadata.
 String[] getTableNames()
          Deprecated. Returns names of tables in this dataset in proper sequence.
 
Methods inherited from class org.dbunit.dataset.AbstractDataSet
createTableNameMap, getTables, isCaseSensitiveTableNames, iterator, reverseIterator, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CaseInsensitiveDataSet

public CaseInsensitiveDataSet(IDataSet dataSet)
                       throws AmbiguousTableNameException,
                              DataSetException
Deprecated. 
Throws:
AmbiguousTableNameException
DataSetException
Method Detail

createIterator

protected ITableIterator createIterator(boolean reversed)
                                 throws DataSetException
Deprecated. 
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 String[] getTableNames()
                       throws DataSetException
Deprecated. 
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(String tableName)
                                throws DataSetException
Deprecated. 
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(String tableName)
                throws DataSetException
Deprecated. 
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-2012. All Rights Reserved.