org.dbunit.dataset
Interface ITableMetaData

All Known Implementing Classes:
AbstractTableMetaData, DatabaseTableMetaData, DefaultTableMetaData, FilteredTableMetaData, LowerCaseTableMetaData

public interface ITableMetaData

Represents table metadata.

Since:
Feb 17, 2002
Version:
$Revision: 651 $
Author:
Manuel Laflamme

Method Summary
 int getColumnIndex(java.lang.String columnName)
          Returns the column's array index of the column with the given name within this table metadata.
 Column[] getColumns()
          Returns this table columns.
 Column[] getPrimaryKeys()
          Returns this table primary key columns.
 java.lang.String getTableName()
          Returns this table name.
 

Method Detail

getTableName

java.lang.String getTableName()
Returns this table name.


getColumns

Column[] getColumns()
                    throws DataSetException
Returns this table columns.

Throws:
DataSetException

getPrimaryKeys

Column[] getPrimaryKeys()
                        throws DataSetException
Returns this table primary key columns.

Throws:
DataSetException

getColumnIndex

int getColumnIndex(java.lang.String columnName)
                   throws DataSetException
Returns the column's array index of the column with the given name within this table metadata.

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
Since:
2.3.0


Copyright © 2002-2008. All Rights Reserved.