Module org.jooq
Package org.jooq

Interface UniqueKey<R extends Record>

Type Parameters:
R - The KEY's owner table record
All Superinterfaces:
Key<R>, Named, QueryPart, Serializable

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.

Author:
Lukas Eder
  • Method Details

    • getReferences

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

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