- All Superinterfaces:
ConstraintDefinition,Definition
- All Known Implementing Classes:
DefaultForeignKeyDefinition
An object holding information about a foreign key relationship.
- Author:
- Lukas Eder
-
Method Summary
Modifier and TypeMethodDescriptionintCount the number of references between referencing and referenced tables.TheON DELETErule ornull, if unspecified.Get the inverse key.The list of columns making up the foreign key.Deprecated.The list of columns referenced by this foreign keyThe referenced key.The definition of the referenced table.TheON UPDATErule ornull, if unspecified.Resolve a referenced key.Methods inherited from interface org.jooq.meta.ConstraintDefinition
enforced, getTableMethods inherited from interface org.jooq.meta.Definition
getCatalog, getComment, getDatabase, getDefinitionPath, getInputName, getName, getOutputName, getOverload, getPackage, getPartiallyQualifiedNames, getQualifiedInputName, getQualifiedInputNamePart, getQualifiedName, getQualifiedNamePart, getQualifiedOutputName, getQualifiedOutputNamePart, getSchema, getSource, isSynthetic
-
Method Details
-
getKeyTable
Deprecated.- [#9672] - jOOQ 3.13 - UseConstraintDefinition.getTable()instead.The definition of the referencing table -
getKeyColumns
List<ColumnDefinition> getKeyColumns()The list of columns making up the foreign key. -
getReferencedKey
UniqueKeyDefinition getReferencedKey()The referenced key. -
resolveReferencedKey
UniqueKeyDefinition resolveReferencedKey()Resolve a referenced key.If
getReferencedKey()coincides itself with a foreign key, resolve that foreign key recursively. In case of ambiguity (two foreign keys coinciding with a single unique key), this returnsnull. -
getReferencedTable
TableDefinition getReferencedTable()The definition of the referenced table. -
getReferencedColumns
List<ColumnDefinition> getReferencedColumns()The list of columns referenced by this foreign key -
countSimilarReferences
int countSimilarReferences()Count the number of references between referencing and referenced tables. -
getInverse
InverseForeignKeyDefinition getInverse()Get the inverse key. -
getDeleteRule
QOM.ForeignKeyRule getDeleteRule()TheON DELETErule ornull, if unspecified. -
getUpdateRule
QOM.ForeignKeyRule getUpdateRule()TheON UPDATErule ornull, if unspecified.
-
ConstraintDefinition.getTable()instead.