org.apache.ws.jaxme.sqls
public interface ForeignKey extends ColumnSet
Interface of a foreign key.
Nested Class Summary | |
---|---|
static interface | ForeignKey.ColumnLink |
static class | ForeignKey.Mode |
Method Summary | |
---|---|
void | addColumnLink(Column pColumn, Column pReferencedColumn) Adds a reference between the given columns. |
void | addColumnLink(Column.Name pName, Column.Name pReferencedName) Adds a reference between the given columns. |
void | addColumnLink(String pName, String pReferencedName) Adds a reference between the given columns. |
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. |
Adds a reference between the given columns.
Parameters: pColumn A column of the table, on which the foreign key is defined pReferencedColumn A column of the referenced table
Adds a reference between the given columns.
Parameters: pName Column name of the table, on which the foreign key is defined pReferencedName Column name of the referenced table.
Adds a reference between the given columns.
Parameters: pName Column name of the table, on which the foreign key is defined pReferencedName Column name of the referenced table.
Returns all column references in the foreign key. Any instance returned by the Iterator is an instance of ColumnLink.
Returns the OnDelete mode.
Returns the OnUpdate mode.
Returns the set of referenced columns.
Returns the referenced table.
Sets the OnDelete mode.
Sets the OnUpdate mode.