|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jaxme.sqls.impl.ColumnSetImpl net.sf.jaxme.sqls.impl.ForeignKeyImpl
Implementation of a foreign key.
Nested Class Summary | |
static class |
ForeignKeyImpl.ColumnReferenceImpl
|
Nested classes inherited from class net.sf.jaxme.sqls.ForeignKey |
ForeignKey.ColumnLink, ForeignKey.Mode |
Field Summary | |
java.util.List |
references
|
Constructor Summary | |
protected |
ForeignKeyImpl(Table pTable,
Table pReferencedTable)
|
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. |
void |
addColumnReference(ForeignKey.ColumnLink pReference)
|
java.util.Iterator |
getColumnLinks()
Returns all column references in the foreign key. |
java.util.Iterator |
getColumns()
Returns the column sets columns. |
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 class net.sf.jaxme.sqls.impl.ColumnSetImpl |
getTable |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface net.sf.jaxme.sqls.ColumnSet |
getTable |
Field Detail |
public java.util.List references
Constructor Detail |
protected ForeignKeyImpl(Table pTable, Table pReferencedTable)
Method Detail |
public Table getReferencedTable()
ForeignKey
Returns the referenced table.
getReferencedTable
in interface ForeignKey
public void setOnDelete(ForeignKey.Mode pMode)
ForeignKey
Sets the OnDelete mode.
setOnDelete
in interface ForeignKey
public ForeignKey.Mode getOnDelete()
ForeignKey
Returns the OnDelete mode.
getOnDelete
in interface ForeignKey
public void setOnUpdate(ForeignKey.Mode pMode)
ForeignKey
Sets the OnUpdate mode.
setOnUpdate
in interface ForeignKey
public ForeignKey.Mode getOnUpdate()
ForeignKey
Returns the OnUpdate mode.
getOnUpdate
in interface ForeignKey
public void addColumnLink(Column pColumn, Column pReferencedColumn)
ForeignKey
Adds a reference between the given columns.
addColumnLink
in interface ForeignKey
pColumn
- A column of the table, on which the foreign key is
definedpReferencedColumn
- A column of the referenced tablepublic void addColumnReference(ForeignKey.ColumnLink pReference)
public void addColumnLink(Column.Name pName, Column.Name pReferencedName)
ForeignKey
Adds a reference between the given columns.
addColumnLink
in interface ForeignKey
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)
ForeignKey
Adds a reference between the given columns.
addColumnLink
in interface ForeignKey
pName
- Column name of the table, on which the foreign
key is definedpReferencedName
- Column name of the referenced table.public java.util.Iterator getColumnLinks()
ForeignKey
Returns all column references in the foreign key. Any instance
returned by the Iterator
is an instance of
ForeignKey.ColumnLink
.
getColumnLinks
in interface ForeignKey
public java.util.Iterator getColumns()
ColumnSet
Returns the column sets columns. In the case of an Index
,
these are the columns that have been added via Index.addColumn(Column)
.
In the case of a ForeignKey
, these are the local columns of
column links.
getColumns
in interface ColumnSet
public ColumnSet getReferencedColumns()
ForeignKey
Returns the set of referenced columns.
getReferencedColumns
in interface ForeignKey
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |