Package org.dbunit.dataset
Class LowerCaseTableMetaData
java.lang.Object
org.dbunit.dataset.AbstractTableMetaData
org.dbunit.dataset.LowerCaseTableMetaData
- All Implemented Interfaces:
ITableMetaData
Specialized ITableMetaData implementation 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
-
Constructor Summary
ConstructorsConstructorDescriptionLowerCaseTableMetaData(String tableName, Column[] columns) Creates metadata with lower-cased table and column names, and no primary keys.LowerCaseTableMetaData(String tableName, Column[] columns, String[] primaryKeys) Creates metadata with lower-cased table and column names, and the given primary key column names.LowerCaseTableMetaData(String tableName, Column[] columns, Column[] primaryKeys) Creates metadata with lower-cased table and column names, and the given primary key columns.LowerCaseTableMetaData(ITableMetaData metaData) Creates metadata with the lower-cased table and column names of the given metadata. -
Method Summary
Methods inherited from class org.dbunit.dataset.AbstractTableMetaData
getColumnIndex, getDataTypeFactory, getPrimaryKeys, getPrimaryKeys
-
Constructor Details
-
LowerCaseTableMetaData
Creates metadata with lower-cased table and column names, and no primary keys.- Parameters:
tableName- the table name.columns- the table columns.
-
LowerCaseTableMetaData
Creates metadata with lower-cased table and column names, and the given primary key column names.- Parameters:
tableName- the table name.columns- the table columns.primaryKeys- the names of the primary key columns.
-
LowerCaseTableMetaData
Creates metadata with the lower-cased table and column names of the given metadata.- Parameters:
metaData- the metadata to lower-case.- Throws:
DataSetException- if the given metadata's columns cannot be retrieved.
-
LowerCaseTableMetaData
Creates metadata with lower-cased table and column names, and the given primary key columns.- Parameters:
tableName- the table name.columns- the table columns.primaryKeys- the primary key columns.
-
-
Method Details
-
getTableName
Description copied from interface:ITableMetaDataReturns this table name.- Returns:
- this table name
-
getColumns
Description copied from interface:ITableMetaDataReturns this table columns as recognized by dbunit. In cases where columns are resolved using database metadata it can happen that an empty array is returned when a table does not have a single column that is recognized by the configuredIDataTypeFactory. Note that it is not an exceptional case within dbunit when aITableMetaDatadoes not have a column.- Returns:
- The columns for this table
-
getPrimaryKeys
Description copied from interface:ITableMetaDataReturns this table primary key columns.- Returns:
- this table primary key columns.
-