-
- All Superinterfaces:
ConstraintDefinition,Definition
- All Known Implementing Classes:
DefaultForeignKeyDefinition
public interface ForeignKeyDefinition extends ConstraintDefinition
An object holding information about a foreign key relationship.- Author:
- Lukas Eder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description intcountSimilarReferences()Count the number of references between referencing and referenced tables.List<ColumnDefinition>getKeyColumns()The list of columns making up the foreign key.TableDefinitiongetKeyTable()Deprecated.- [#9672] - jOOQ 3.13 - UseConstraintDefinition.getTable()instead.List<ColumnDefinition>getReferencedColumns()The list of columns referenced by this foreign keyUniqueKeyDefinitiongetReferencedKey()The referenced key.TableDefinitiongetReferencedTable()The definition of the referenced table.UniqueKeyDefinitionresolveReferencedKey()Resolve a referenced key.-
Methods inherited from interface org.jooq.meta.ConstraintDefinition
enforced, getTable
-
Methods inherited from interface org.jooq.meta.Definition
getCatalog, getComment, getDatabase, getDefinitionPath, getInputName, getName, getOutputName, getOverload, getPackage, getQualifiedInputName, getQualifiedInputNamePart, getQualifiedName, getQualifiedNamePart, getQualifiedOutputName, getQualifiedOutputNamePart, getSchema, getSource
-
-
-
-
Method Detail
-
getKeyTable
@Deprecated TableDefinition 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.
-
-