|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.biomage.tools.generate_er.ForeignKey
public class ForeignKey
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 |
---|
public 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)
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
public ForeignKey(ForeignKey FK)
FK
- the other foreign key object
Method Detail |
---|
public java.lang.String getColumnId()
- Returns:
- return the column id
public java.lang.String getForeignTable()
- Returns:
- return name of the foreign table
public java.lang.String getForeignTablePrimaryKey()
- Returns:
- return name of the foreign table primary key
public java.lang.String getForeignKeyType()
- Returns:
- return the type of the foreign key
public java.lang.String getCascade()
- Returns:
- return "true" if the foreign table owns this table
return "false" if the foreign table does not own this table
public void setColumnId(java.lang.String myID)
myID
- the column id of the foreign key
public void setForeignTable(java.lang.String myTable)
myTable
- the foreign table object
public void setForeignTablePrimaryKey(java.lang.String mypkey)
mypkey
- the primary key of the foreign table object
public void setForeignKeyType(java.lang.String myType)
myType
- the type of the foreign key
public void setCascade(java.lang.String myCas)
myCas
- if the foreign table owns this table
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |