Top Description Methods
org.jooq

public Interface UniqueKey<R extends org.jooq.Record>

extends Key<R extends Record>
Known Direct Implementers
org.jooq.impl.MetaImpl.MetaUniqueKey, org.jooq.impl.UniqueKeyImpl
Type Parameters
<R>
The KEY's owner table record
Imports
java.util.List, org.jetbrains.annotations.NotNull

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 Summary

Modifier and TypeMethod and Description
public @NotNull List<ForeignKey<?, R>>
getReferences()

A list of all ForeignKeys, referencing this UniqueKey

public boolean
isPrimary()

Whether this is the table's primary key.

Inherited from org.jooq.Key:
constraintenforcedgetFieldsgetFieldsArraygetTablenullable

Method Detail

getReferencesback to summary
public @NotNull List<ForeignKey<?, R>> getReferences()

A list of all ForeignKeys, referencing this UniqueKey

Annotations
@NotNull
isPrimaryback to summary
public boolean isPrimary()

Whether this is the table's primary key.