Package org.jooq.meta

Interface InverseForeignKeyDefinition

All Superinterfaces:
ConstraintDefinition, Definition
All Known Implementing Classes:
DefaultInverseForeignKeyDefinition

public interface InverseForeignKeyDefinition extends ConstraintDefinition
An object holding information about an inverse foreign key relationship.

This constraint represents the UniqueKeyDefinition that enforces the uniqueness at the referenced end of the ForeignKeyDefinition.

Author:
Lukas Eder
  • Method Details

    • getKeyColumns

      List<ColumnDefinition> getKeyColumns()
      The list of columns making up the unique key.
    • getReferencingTable

      TableDefinition getReferencingTable()
      The definition of the referencing table.
    • getReferencingColumns

      List<ColumnDefinition> getReferencingColumns()
      The list of columns referencing this unique key from the foreign key.
    • getForeignKey

      ForeignKeyDefinition getForeignKey()
      Get the foreign key this is an inverse of.