org.apache.ws.jaxme.sqls
Interface ForeignKey
- ColumnSet
- ForeignKeyImpl
public interface ForeignKey
Interface of a foreign key.
addColumnLink
public void addColumnLink(String pName,
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.
addColumnLink
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 table
addColumnLink
public 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.
getColumnLinks
public Iterator getColumnLinks()
Returns all column references in the foreign key. Any instance
returned by the
Iterator
is an instance of
ForeignKey.ColumnLink
.
getReferencedColumns
public ColumnSet getReferencedColumns()
Returns the set of referenced columns.
getReferencedTable
public Table getReferencedTable()
Returns the referenced table.
setOnDelete
public void setOnDelete(ForeignKey.Mode pMode)
Sets the OnDelete mode.
setOnUpdate
public void setOnUpdate(ForeignKey.Mode pMode)
Sets the OnUpdate mode.