|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface of a foreign key.
Nested Class Summary | |
static interface |
ForeignKey.ColumnLink
|
static class |
ForeignKey.Mode
|
Method Summary | |
void |
addColumnLink(Column.Name pName,
Column.Name pReferencedName)
Adds a reference between the given columns. |
void |
addColumnLink(Column pColumn,
Column pReferencedColumn)
Adds a reference between the given columns. |
void |
addColumnLink(java.lang.String pName,
java.lang.String pReferencedName)
Adds a reference between the given columns. |
java.util.Iterator |
getColumnLinks()
Returns all column references in the foreign key. |
ForeignKey.Mode |
getOnDelete()
Returns the OnDelete mode. |
ForeignKey.Mode |
getOnUpdate()
Returns the OnUpdate mode. |
ColumnSet |
getReferencedColumns()
Returns the set of referenced columns. |
Table |
getReferencedTable()
Returns the referenced table. |
void |
setOnDelete(ForeignKey.Mode pMode)
Sets the OnDelete mode. |
void |
setOnUpdate(ForeignKey.Mode pMode)
Sets the OnUpdate mode. |
Methods inherited from interface net.sf.jaxme.sqls.ColumnSet |
getColumns, getTable |
Method Detail |
public Table getReferencedTable()
Returns the referenced table.
public void setOnDelete(ForeignKey.Mode pMode)
Sets the OnDelete mode.
public ForeignKey.Mode getOnDelete()
Returns the OnDelete mode.
public void setOnUpdate(ForeignKey.Mode pMode)
Sets the OnUpdate mode.
public ForeignKey.Mode getOnUpdate()
Returns the OnUpdate mode.
public void addColumnLink(Column pColumn, Column pReferencedColumn)
Adds a reference between the given columns.
pColumn
- A column of the table, on which the foreign key is
definedpReferencedColumn
- A column of the referenced tablepublic void addColumnLink(Column.Name pName, Column.Name pReferencedName)
Adds a reference between the given columns.
pName
- Column name of the table, on which the foreign
key is definedpReferencedName
- Column name of the referenced table.public void addColumnLink(java.lang.String pName, java.lang.String pReferencedName)
Adds a reference between the given columns.
pName
- Column name of the table, on which the foreign
key is definedpReferencedName
- Column name of the referenced table.public java.util.Iterator getColumnLinks()
Returns all column references in the foreign key. Any instance
returned by the Iterator
is an instance of
ForeignKey.ColumnLink
.
public ColumnSet getReferencedColumns()
Returns the set of referenced columns.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |