net.sf.colle.sql.schema
Class ForeignKey

java.lang.Object
  extended bynet.sf.colle.sql.schema.ForeignKey

public class ForeignKey
extends Object

Model abstraction of a foreign key on a relational table. Created: 23 Feb 2001

Version:
$Revision: 1.7 $, $Date: 2004/07/10 04:27:37 $
Author:
Dwayne Schultz

Constructor Summary
(package private) ForeignKey(String psName, org.jdom.Element pxData, Table pxTable, TableBuilder pxBuilder)
          Constructs an foreign key on a relational table.
 
Method Summary
(package private)  void appendColumn(Column pxColumn, org.jdom.Element pxData)
          Appends a column that is part of the index.
(package private)  void connect(RelationalModel pxModel)
          Finds the foreign index.
 String getCreateSQL()
          Returns a complete SQL statement that can be used to create this foreign key.
 String getName()
          Returns the name of the foreign key.
 Table getReferenceTable()
          Returns the reference table name of the foreign key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForeignKey

ForeignKey(String psName,
           org.jdom.Element pxData,
           Table pxTable,
           TableBuilder pxBuilder)
Constructs an foreign key on a relational table.

Method Detail

getName

public String getName()
Returns the name of the foreign key.


getReferenceTable

public Table getReferenceTable()
Returns the reference table name of the foreign key.


getCreateSQL

public String getCreateSQL()
Returns a complete SQL statement that can be used to create this foreign key.


appendColumn

void appendColumn(Column pxColumn,
                  org.jdom.Element pxData)
Appends a column that is part of the index.


connect

void connect(RelationalModel pxModel)
Finds the foreign index.