uk.org.ogsadai.converters.databaseschema
Interface TableMetaData

All Known Implementing Classes:
TableMetaDataImpl, TableMetaDataImpl

public interface TableMetaData

Metadata of a database table.

Author:
The OGSA-DAI Team.

Method Summary
 java.lang.String getCatalogName()
          Returns the catalog name of this table.
 ColumnMetaData getColumn(int index)
          Returns the type information of the column at the specified index.
 int getColumnCount()
          Returns the number of columns in this table.
 KeyMetaData[] getExportedKeys()
          Returns the exported keys of this table.
 KeyMetaData[] getImportedKeys()
          Returns the imported keys of this table.
 java.lang.String getName()
          Returns the name of this table.
 java.lang.String[] getPrimaryKeys()
          Returns a set of columns which form the (composite) primary key of this table.
 java.lang.String getSchemaName()
          Returns the schema name of this table.
 

Method Detail

getName

public java.lang.String getName()
Returns the name of this table.

Returns:
name.

getSchemaName

public java.lang.String getSchemaName()
Returns the schema name of this table.

Returns:
schema name.

getCatalogName

public java.lang.String getCatalogName()
Returns the catalog name of this table.

Returns:
catalog name.

getColumnCount

public int getColumnCount()
Returns the number of columns in this table.

Returns:
number of columns.

getColumn

public ColumnMetaData getColumn(int index)
Returns the type information of the column at the specified index.

Parameters:
index - The column index.
Returns:
column type information.

getPrimaryKeys

public java.lang.String[] getPrimaryKeys()
Returns a set of columns which form the (composite) primary key of this table.

Returns:
set of column names

getImportedKeys

public KeyMetaData[] getImportedKeys()
Returns the imported keys of this table.

Returns:
imported keys.

getExportedKeys

public KeyMetaData[] getExportedKeys()
Returns the exported keys of this table.

Returns:
imported keys.