- All Superinterfaces:
ConstraintDefinition,Definition
- All Known Implementing Classes:
DefaultManyToManyKeyDefinition
An object holding information about an many to many foreign key relationship.
This constraint represents the UniqueKeyDefinition that enforces the
relationship in the relationship table. The UniqueKeyDefinition is a
composite key, whose columns are completely contained in the two outbound
ForeignKeyDefinition specified by getForeignKey1() and
getForeignKey2(). The order of ForeignKeyDefinition depends
on the navigation direction.
- Author:
- Lukas Eder
-
Method Summary
Modifier and TypeMethodDescriptionGet the first foreign key in the relationship.Get the second foreign key in the relationship.The list of columns making up the unique key.Get the "parent" table of the first key, irrespective of key direction.Get the "parent" table of the second key, irrespective of key direction.The unique key that enforces the relationship.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
-
getKeyColumns
List<ColumnDefinition> getKeyColumns()The list of columns making up the unique key. -
getUniqueKey
UniqueKeyDefinition getUniqueKey()The unique key that enforces the relationship. -
getForeignKey1
ForeignKeyDefinition getForeignKey1()Get the first foreign key in the relationship.This key may point from the
getParentTable1()to thegetUniqueKey()table, or vice versa. -
getForeignKey2
ForeignKeyDefinition getForeignKey2()Get the second foreign key in the relationship.This key may point from the
getParentTable2()to thegetUniqueKey()table, or vice versa. -
getParentTable1
TableDefinition getParentTable1()Get the "parent" table of the first key, irrespective of key direction. -
getParentTable2
TableDefinition getParentTable2()Get the "parent" table of the second key, irrespective of key direction.
-