- 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.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. -
getForeignKey2
ForeignKeyDefinition getForeignKey2()Get the second foreign key in the relationship.
-