Package org.jooq.meta

Interface ForeignKeyDefinition

    • Method Detail

      • getKeyColumns

        List<ColumnDefinition> getKeyColumns()
        The list of columns making up the foreign 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 returns null.

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