Package org.dbunit.dataset
Class AbstractTableMetaData
java.lang.Object
org.dbunit.dataset.AbstractTableMetaData
- All Implemented Interfaces:
ITableMetaData
- Direct Known Subclasses:
DatabaseTableMetaData,DefaultTableMetaData,FilteredTableMetaData,LowerCaseTableMetaData,ResultSetTableMetaData
- Since:
- 1.0 (Mar 8, 2002)
- Version:
- $Revision$ $Date$
- Author:
- Manuel Laflamme, Last changed by: $Author$
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetColumnIndex(String columnName) Provides the index of the column with the given name within this table.getDataTypeFactory(IDatabaseConnection connection) Validates and returns the datatype factory of the given connectionprotected static Column[]getPrimaryKeys(String tableName, Column[] columns, IColumnFilter columnFilter) Deprecated.protected static Column[]getPrimaryKeys(Column[] columns, String[] keyNames) Deprecated.since 2.3.0 - useColumns.getColumns(String[], Column[])Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.dbunit.dataset.ITableMetaData
getColumns, getPrimaryKeys, getTableName
-
Constructor Details
-
AbstractTableMetaData
public AbstractTableMetaData()Default constructor
-
-
Method Details
-
getPrimaryKeys
Deprecated.since 2.3.0 - useColumns.getColumns(String[], Column[])- Parameters:
columns-keyNames-- Returns:
- The primary key columns
-
getPrimaryKeys
protected static Column[] getPrimaryKeys(String tableName, Column[] columns, IColumnFilter columnFilter) Deprecated.since 2.3.0 - useColumns.getColumns(String[], Column[])- Parameters:
tableName-columns-columnFilter-- Returns:
- The filtered primary key columns
-
getColumnIndex
Provides the index of the column with the given name within this table. Uses methodITableMetaData.getColumns()to retrieve all available columns.- Specified by:
getColumnIndexin interfaceITableMetaData- Parameters:
columnName- The name of the column that is searched- Returns:
- The index of the given column within this metadata, starting with 0 for the first column
- Throws:
DataSetException- See Also:
-
getDataTypeFactory
Validates and returns the datatype factory of the given connection- Parameters:
connection- The connection providing theIDataTypeFactory- Returns:
- The datatype factory of the given connection
- Throws:
SQLException
-
Columns.getColumns(String[], Column[])