uk.org.ogsadai.client.toolkit.properties
Class TableMetaData

java.lang.Object
  |
  +--uk.org.ogsadai.client.toolkit.properties.TableMetaData

public class TableMetaData
extends java.lang.Object

Author:
The OGSA-DAI Team. Represents the metadata for a database table, as provided by a data service

Method Summary
 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
 java.lang.String[][] getExportedKeys()
          Returns the exported keys of this table.
 java.lang.String[][] getImportedKeys()
          Returns the imported keys of this table.
 java.lang.String getName()
          Returns the name of this table.
 java.util.Set getPrimaryKeys()
          Returns a set of columns which form the (composite) primary key of this table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getName

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

Returns:
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.util.Set getPrimaryKeys()
Returns a set of columns which form the (composite) primary key of this table

Returns:
set of column names

getImportedKeys

public java.lang.String[][] getImportedKeys()
Returns the imported keys of this table. The returned array has the following format: for each n,

Returns:
imported keys.

getExportedKeys

public java.lang.String[][] getExportedKeys()
Returns the exported keys of this table. The returned array has the following format: for each n,

Returns:
imported keys.