SPT RWT Application API

com.sptci.rwt
Class TableMetaData

java.lang.Object
  extended by com.sptci.rwt.MetaData
      extended by com.sptci.rwt.ObjectMetaData
          extended by com.sptci.rwt.TableTypeMetaData
              extended by com.sptci.rwt.TableMetaData
All Implemented Interfaces:
Serializable

public class TableMetaData
extends TableTypeMetaData

A value object that represents metadata for tables.

© Copyright 2007 Sans Pareil Technologies, Inc.

Version:
$Id: TableMetaData.java 4123 2008-05-25 21:49:01Z rakesh $
Author:
Rakesh Vidyadharan 2007-09-25
See Also:
DatabaseMetaData.getTables(java.lang.String, java.lang.String, java.lang.String, java.lang.String[]), Serialized Form

Field Summary
private  Collection<ForeignKeyMetaData> foreignKeys
          The collection of foreign key columns for this table.
private  Collection<IndexMetaData> indices
          The collection of foreign key columns for this table.
private  PrimaryKeyMetaData primaryKey
          The collection of primary key columns for this table.
private  Collection<TriggerMetaData> triggers
          The collection of triggers for this table.
 
Constructor Summary
TableMetaData()
           
 
Method Summary
protected  void addForeignKey(ForeignKeyMetaData foreignKey)
          Adds the specified foreign key to foreignKeys.
protected  void addForeignKeys(Collection<ForeignKeyMetaData> foreignKeys)
          Adds the specified collection of foreign keys to foreignKeys.
protected  void addIndex(IndexMetaData index)
          Add the specified index to indices.
protected  void addIndices(Collection<IndexMetaData> indices)
          Add the specified collection of indices to indices.
 Collection<ForeignKeyMetaData> getForeignKeys()
          Returns foreignKeys.
 Collection<IndexMetaData> getIndices()
          Returns indices.
 PrimaryKeyMetaData getPrimaryKey()
          Returns primaryKey.
 Collection<TriggerMetaData> getTriggers()
          Returns triggers.
protected  void setForeignKeys(Collection<ForeignKeyMetaData> foreignKeys)
          Set foreignKeys.
protected  void setIndices(Collection<IndexMetaData> indices)
          Set indices.
protected  void setPrimaryKey(PrimaryKeyMetaData primaryKey)
          Set primaryKey.
protected  void setTriggers(Collection<TriggerMetaData> triggers)
          Set triggers.
 
Methods inherited from class com.sptci.rwt.TableTypeMetaData
getColumn, getColumns, getNumberOfRows, setColumns, setNumberOfRows
 
Methods inherited from class com.sptci.rwt.ObjectMetaData
getCatalogue, getComment, getRoot, setCatalogue, setComment, setRoot
 
Methods inherited from class com.sptci.rwt.MetaData
equals, getName, hashCode, setName, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

primaryKey

private PrimaryKeyMetaData primaryKey
The collection of primary key columns for this table.


foreignKeys

private Collection<ForeignKeyMetaData> foreignKeys
The collection of foreign key columns for this table.


indices

private Collection<IndexMetaData> indices
The collection of foreign key columns for this table.


triggers

private Collection<TriggerMetaData> triggers
The collection of triggers for this table.

Constructor Detail

TableMetaData

public TableMetaData()
Method Detail

getPrimaryKey

public PrimaryKeyMetaData getPrimaryKey()
Returns primaryKey.

Returns:
The value/reference of/to primaryKey.

setPrimaryKey

protected void setPrimaryKey(PrimaryKeyMetaData primaryKey)
Set primaryKey.

Parameters:
primaryKey - The value to set.

getForeignKeys

public Collection<ForeignKeyMetaData> getForeignKeys()
Returns foreignKeys.

Returns:
The value/reference of/to foreignKeys.

setForeignKeys

protected void setForeignKeys(Collection<ForeignKeyMetaData> foreignKeys)
Set foreignKeys.

Parameters:
foreignKeys - The value to set.

addForeignKey

protected void addForeignKey(ForeignKeyMetaData foreignKey)
Adds the specified foreign key to foreignKeys.

Parameters:
foreignKey - The value to add.

addForeignKeys

protected void addForeignKeys(Collection<ForeignKeyMetaData> foreignKeys)
Adds the specified collection of foreign keys to foreignKeys.

Parameters:
foreignKeys - The value to add.

getIndices

public Collection<IndexMetaData> getIndices()
Returns indices.

Returns:
The value/reference of/to indices.

setIndices

protected void setIndices(Collection<IndexMetaData> indices)
Set indices.

Parameters:
indices - The value to set.

addIndex

protected void addIndex(IndexMetaData index)
Add the specified index to indices.

Parameters:
index - The index that is to be added.

addIndices

protected void addIndices(Collection<IndexMetaData> indices)
Add the specified collection of indices to indices.

Parameters:
indices - The indices that are to be added.

getTriggers

public Collection<TriggerMetaData> getTriggers()
Returns triggers.

Returns:
The value/reference of/to triggers.

setTriggers

protected void setTriggers(Collection<TriggerMetaData> triggers)
Set triggers.

Parameters:
triggers - The value to set.

SPT RWT Application API