|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 ForeignKey
public void addColumn(ForeignKeyColumn column)
addColumn
in interface ForeignKey
column
- the ForeignKeyColumnpublic void deleteColumn(ForeignKeyColumn column)
deleteColumn
in interface ForeignKey
column
- the ForeignKeyColumnpublic ForeignKeyColumn findColumnByName(String columnName)
findColumnByName
in interface ForeignKey
columnName
- the name of column
public Table getSourceTable()
getSourceTable
in interface ForeignKey
public void setSourceTable(Table sourceTable)
setSourceTable
in interface ForeignKey
sourceTable
- the scope table of a foreign key.public PrimaryKey getSourcePrimaryKey()
getSourcePrimaryKey
in interface ForeignKey
public void setSourcePrimaryKey(PrimaryKey primaryKey)
setSourcePrimaryKey
in interface ForeignKey
primaryKey
- the PK of scope table.public KeyModifyRuleType getUpdateRule()
getUpdateRule
in interface ForeignKey
public void setUpdateRule(KeyModifyRuleType updateRule)
setUpdateRule
in interface ForeignKey
updateRule
- what happens to a foreign key when the primary key is updatedpublic KeyModifyRuleType getDeleteRule()
getDeleteRule
in interface ForeignKey
public void setDeleteRule(KeyModifyRuleType deleteRule)
setDeleteRule
in interface ForeignKey
deleteRule
- what happens to a foreign key when the primary key is deletedpublic KeyDeferrabilityType getDeferrability()
getDeferrability
in interface ForeignKey
public void setDeferrability(KeyDeferrabilityType deferrability)
setDeferrability
in interface ForeignKey
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 |