Package org.jooq

Interface UniqueKey<R extends Record>

  • Type Parameters:
    R - The KEY's owner table record
    All Superinterfaces:

    public interface UniqueKey<R extends Record>
    extends Key<R>
    A UniqueKey is an object representing a UNIQUE KEY or a PRIMARY KEY. It can be referenced by a ForeignKey.

    Instances of this type cannot be created directly. They are available from generated code.

    Lukas Eder
    • Method Detail

      • getReferences

        java.util.List<ForeignKey<?,​R>> getReferences()
        A list of all ForeignKeys, referencing this UniqueKey
      • isPrimary

        boolean isPrimary()
        Whether this is the table's primary key.