|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ForeignKey

Provides database table's foreing key specific metadata.
| Method Summary | |
|---|---|
void |
addColumn(ForeignKeyColumn column)
Adds ForeignKeyColumn |
void |
deleteColumn(ForeignKeyColumn column)
deletes ForeignKeyColumn |
ForeignKeyColumn |
findColumnByName(String columnName)
Returns table column for specified column name or null |
Set<ForeignKeyColumn> |
getColumns()
Retrieves foreign key columns |
KeyDeferrabilityType |
getDeferrability()
Can the evaluation of foreign key constraints be deferred until commit |
KeyModifyRuleType |
getDeleteRule()
What happens to a foreign key when the primary key is deleted |
PrimaryKey |
getSourcePrimaryKey()
Returns the PK of scope table. |
Table |
getSourceTable()
Returns the scope table of a foreign key. |
KeyModifyRuleType |
getUpdateRule()
What happens to a foreign key when the primary key is updated |
void |
setDeferrability(KeyDeferrabilityType deferrability)
Can the evaluation of foreign key constraints be deferred until commit |
void |
setDeleteRule(KeyModifyRuleType deleteRule)
What happens to a foreign key when the primary key is deleted |
void |
setSourcePrimaryKey(PrimaryKey primaryKey)
Sets the PK of scope table. |
void |
setSourceTable(Table sourceTable)
Sets the scope table of a foreign key. |
void |
setUpdateRule(KeyModifyRuleType updateRule)
What happens to a foreign key when the primary key is updated |
| Methods inherited from interface org.jboss.dna.common.jdbc.model.api.SchemaObject |
|---|
getCatalog, getSchema, setCatalog, setSchema |
| Methods inherited from interface org.jboss.dna.common.jdbc.model.api.DatabaseNamedObject |
|---|
addExtraProperty, deleteExtraProperty, getExtraProperties, getExtraProperty, getName, getRemarks, setName, setRemarks |
| Method Detail |
|---|
Set<ForeignKeyColumn> getColumns()
void addColumn(ForeignKeyColumn column)
column - the ForeignKeyColumnvoid deleteColumn(ForeignKeyColumn column)
column - the ForeignKeyColumnForeignKeyColumn findColumnByName(String columnName)
columnName - the name of column
Table getSourceTable()
void setSourceTable(Table sourceTable)
sourceTable - the scope table of a foreign key.PrimaryKey getSourcePrimaryKey()
void setSourcePrimaryKey(PrimaryKey primaryKey)
primaryKey - the PK of scope table.KeyModifyRuleType getUpdateRule()
void setUpdateRule(KeyModifyRuleType updateRule)
updateRule - what happens to a foreign key when the primary key is updatedKeyModifyRuleType getDeleteRule()
void setDeleteRule(KeyModifyRuleType deleteRule)
deleteRule - what happens to a foreign key when the primary key is deletedKeyDeferrabilityType getDeferrability()
void setDeferrability(KeyDeferrabilityType deferrability)
deferrability - the evaluation of foreign key constraints be deferred until commit
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||