public class DatabaseTableMetaData extends AbstractTableMetaData
IDatabaseConnection
.ITableMetaData
Modifier and Type | Method and Description |
---|---|
static ITableMetaData |
createMetaData(String tableName,
ResultSet resultSet,
IDatabaseConnection connection)
Deprecated.
|
static ITableMetaData |
createMetaData(String tableName,
ResultSet resultSet,
IDataTypeFactory dataTypeFactory)
Deprecated.
|
Column[] |
getColumns()
Returns this table columns as recognized by dbunit.
|
Column[] |
getPrimaryKeys()
Returns this table primary key columns.
|
String |
getTableName()
Returns this table name.
|
String |
toString() |
getColumnIndex, getDataTypeFactory, getPrimaryKeys, getPrimaryKeys
public static ITableMetaData createMetaData(String tableName, ResultSet resultSet, IDataTypeFactory dataTypeFactory) throws DataSetException, SQLException
ResultSetTableMetaData.ResultSetTableMetaData(String, ResultSet, IDataTypeFactory, boolean)
tableName
- resultSet
- dataTypeFactory
- DataSetException
SQLException
public static ITableMetaData createMetaData(String tableName, ResultSet resultSet, IDatabaseConnection connection) throws SQLException, DataSetException
ResultSetTableMetaData.ResultSetTableMetaData(String, ResultSet, IDatabaseConnection, boolean)
tableName
- resultSet
- connection
- SQLException
DataSetException
public String getTableName()
ITableMetaData
public Column[] getColumns() throws DataSetException
ITableMetaData
IDataTypeFactory
.
Note that it is not an exceptional case within dbunit when a ITableMetaData
does not have a column.DataSetException
public Column[] getPrimaryKeys() throws DataSetException
ITableMetaData
DataSetException
Copyright © 2002–2024. All rights reserved.