|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ws.jaxme.sqls.impl.ColumnSetImpl
org.apache.ws.jaxme.sqls.impl.ForeignKeyImpl
Implementation of a foreign key.
| Nested Class Summary | |
static class |
ForeignKeyImpl.ColumnReferenceImpl
|
| Nested classes inherited from class org.apache.ws.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 org.apache.ws.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 org.apache.ws.jaxme.sqls.ColumnSet |
getTable |
| Field Detail |
public java.util.List references
| Constructor Detail |
protected ForeignKeyImpl(Table pTable,
Table pReferencedTable)
| Method Detail |
public Table getReferencedTable()
ForeignKeyReturns the referenced table.
getReferencedTable in interface ForeignKeypublic void setOnDelete(ForeignKey.Mode pMode)
ForeignKeySets the OnDelete mode.
setOnDelete in interface ForeignKeypublic ForeignKey.Mode getOnDelete()
ForeignKeyReturns the OnDelete mode.
getOnDelete in interface ForeignKeypublic void setOnUpdate(ForeignKey.Mode pMode)
ForeignKeySets the OnUpdate mode.
setOnUpdate in interface ForeignKeypublic ForeignKey.Mode getOnUpdate()
ForeignKeyReturns the OnUpdate mode.
getOnUpdate in interface ForeignKey
public void addColumnLink(Column pColumn,
Column pReferencedColumn)
ForeignKeyAdds a reference between the given columns.
addColumnLink in interface ForeignKeypColumn - 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)
ForeignKeyAdds a reference between the given columns.
addColumnLink in interface ForeignKeypName - 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)
ForeignKeyAdds a reference between the given columns.
addColumnLink in interface ForeignKeypName - Column name of the table, on which the foreign
key is definedpReferencedName - Column name of the referenced table.public java.util.Iterator getColumnLinks()
ForeignKeyReturns all column references in the foreign key. Any instance
returned by the Iterator is an instance of
ForeignKey.ColumnLink.
getColumnLinks in interface ForeignKeypublic java.util.Iterator getColumns()
ColumnSetReturns 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 ColumnSetpublic ColumnSet getReferencedColumns()
ForeignKeyReturns 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 | |||||||||