org.biomage.tools.generate_er
Class ForeignKey

java.lang.Object
  extended by org.biomage.tools.generate_er.ForeignKey

public class ForeignKey
extends java.lang.Object


Constructor Summary
ForeignKey()
          Description: Constructor for the ForeignKey object.
ForeignKey(ForeignKey FK)
          Description: Constructor for the ForeignKey object.
ForeignKey(java.lang.String column_id, java.lang.String foreign_table, java.lang.String foreign_table_pkey, java.lang.String fkey_type, java.lang.String can_cascade)
          Description: Constructor for the ForeignKey object.
 
Method Summary
 java.lang.String getCascade()
          Description: get if the foreign table owns this table
 java.lang.String getColumnId()
          Description: get the column id of the foreign key
 java.lang.String getForeignKeyType()
          Description: get the type of the foreign key
 java.lang.String getForeignTable()
          Description: get the name of the foreign table
 java.lang.String getForeignTablePrimaryKey()
          Description: get the name of the foreign table primary key
 void setCascade(java.lang.String myCas)
          Description: set if the foreign table owns this table
 void setColumnId(java.lang.String myID)
          Description: set the column id of the foreign key
 void setForeignKeyType(java.lang.String myType)
          Description: set the type of the foreign key
 void setForeignTable(java.lang.String myTable)
          Description: set the foreign table object for this table
 void setForeignTablePrimaryKey(java.lang.String mypkey)
          Description: set the primary key of the foreign table object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForeignKey

public ForeignKey()
Description: Constructor for the ForeignKey object.

Parameters:

ForeignKey

public ForeignKey(java.lang.String column_id,
                  java.lang.String foreign_table,
                  java.lang.String foreign_table_pkey,
                  java.lang.String fkey_type,
                  java.lang.String can_cascade)
Description: Constructor for the ForeignKey object.

Parameters:
column_id - id of the column foreign_table name of the foreign table foreign_table_pkey name of the primary key of the foreign table fkey_type type of the foreign key can_cascade if the foreign table owns this table

ForeignKey

public ForeignKey(ForeignKey FK)
Description: Constructor for the ForeignKey object.

Parameters:
FK - the other foreign key object
Method Detail

getColumnId

public java.lang.String getColumnId()
Description: get the column id of the foreign key

Parameters:
Returns:
return the column id

getForeignTable

public java.lang.String getForeignTable()
Description: get the name of the foreign table

Parameters:
Returns:
return name of the foreign table

getForeignTablePrimaryKey

public java.lang.String getForeignTablePrimaryKey()
Description: get the name of the foreign table primary key

Parameters:
Returns:
return name of the foreign table primary key

getForeignKeyType

public java.lang.String getForeignKeyType()
Description: get the type of the foreign key

Parameters:
Returns:
return the type of the foreign key

getCascade

public java.lang.String getCascade()
Description: get if the foreign table owns this table

Parameters:
Returns:
return "true" if the foreign table owns this table return "false" if the foreign table does not own this table

setColumnId

public void setColumnId(java.lang.String myID)
Description: set the column id of the foreign key

Parameters:
myID - the column id of the foreign key

setForeignTable

public void setForeignTable(java.lang.String myTable)
Description: set the foreign table object for this table

Parameters:
myTable - the foreign table object

setForeignTablePrimaryKey

public void setForeignTablePrimaryKey(java.lang.String mypkey)
Description: set the primary key of the foreign table object

Parameters:
mypkey - the primary key of the foreign table object

setForeignKeyType

public void setForeignKeyType(java.lang.String myType)
Description: set the type of the foreign key

Parameters:
myType - the type of the foreign key

setCascade

public void setCascade(java.lang.String myCas)
Description: set if the foreign table owns this table

Parameters:
myCas - if the foreign table owns this table