Module org.jooq
Package org.jooq

Interface Key<R extends Record>

  • Type Parameters:
    R - The KEY's owner table record
    All Superinterfaces:
    Serializable
    All Known Subinterfaces:
    ForeignKey<R,​O>, UniqueKey<R>

    public interface Key<R extends Record>
    extends Serializable
    A Key is an object representing a UNIQUE KEY, a PRIMARY KEY, or a FOREIGN KEY.

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

    Author:
    Lukas Eder
    • Method Detail

      • getName

        String getName()
        The Key's name.
      • getTable

        Table<R> getTable()
        The Key's owner table
      • getFields

        List<TableField<R,​?>> getFields()
        The fields that make up the KEY