|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jboss.dna.common.jdbc.model.spi.CoreMetaDataBean
org.jboss.dna.common.jdbc.model.spi.DatabaseNamedObjectBean
org.jboss.dna.common.jdbc.model.spi.SchemaObjectBean
org.jboss.dna.common.jdbc.model.spi.ForeignKeyBean
public class ForeignKeyBean

Provides database table's foreing key specific metadata.
| Constructor Summary | |
|---|---|
ForeignKeyBean()
Default constructor |
|
| Method Summary | |
|---|---|
void |
addColumn(ForeignKeyColumn column)
Adds ForeignKeyColumn |
void |
deleteColumn(ForeignKeyColumn column)
Removes 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 class org.jboss.dna.common.jdbc.model.spi.SchemaObjectBean |
|---|
getCatalog, getSchema, setCatalog, setSchema |
| Methods inherited from class org.jboss.dna.common.jdbc.model.spi.DatabaseNamedObjectBean |
|---|
addExtraProperty, deleteExtraProperty, getExtraProperties, getExtraProperty, getName, getRemarks, setName, setRemarks |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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 |
| Constructor Detail |
|---|
public ForeignKeyBean()
| Method Detail |
|---|
public Set<ForeignKeyColumn> getColumns()
getColumns in interface ForeignKeypublic void addColumn(ForeignKeyColumn column)
addColumn in interface ForeignKeycolumn - the ForeignKeyColumnpublic void deleteColumn(ForeignKeyColumn column)
deleteColumn in interface ForeignKeycolumn - the ForeignKeyColumnpublic ForeignKeyColumn findColumnByName(String columnName)
findColumnByName in interface ForeignKeycolumnName - the name of column
public Table getSourceTable()
getSourceTable in interface ForeignKeypublic void setSourceTable(Table sourceTable)
setSourceTable in interface ForeignKeysourceTable - the scope table of a foreign key.public PrimaryKey getSourcePrimaryKey()
getSourcePrimaryKey in interface ForeignKeypublic void setSourcePrimaryKey(PrimaryKey primaryKey)
setSourcePrimaryKey in interface ForeignKeyprimaryKey - the PK of scope table.public KeyModifyRuleType getUpdateRule()
getUpdateRule in interface ForeignKeypublic void setUpdateRule(KeyModifyRuleType updateRule)
setUpdateRule in interface ForeignKeyupdateRule - what happens to a foreign key when the primary key is updatedpublic KeyModifyRuleType getDeleteRule()
getDeleteRule in interface ForeignKeypublic void setDeleteRule(KeyModifyRuleType deleteRule)
setDeleteRule in interface ForeignKeydeleteRule - what happens to a foreign key when the primary key is deletedpublic KeyDeferrabilityType getDeferrability()
getDeferrability in interface ForeignKeypublic void setDeferrability(KeyDeferrabilityType deferrability)
setDeferrability in interface ForeignKeydeferrability - 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 | ||||||||