Package org.jooq.meta

Schnittstelle ManyToManyKeyDefinition

Alle Superschnittstellen:
ConstraintDefinition, Definition
Alle bekannten Implementierungsklassen:
DefaultManyToManyKeyDefinition

public interface ManyToManyKeyDefinition extends ConstraintDefinition
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.

Autor:
Lukas Eder
  • Methodendetails

    • 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.