Top Description Methods
org.jooq

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

extends Named
Known Direct Subinterfaces
org.jooq.UniqueKey, org.jooq.ForeignKey
Known Direct Implementers
org.jooq.impl.AbstractKey
Type Parameters
<R>
The KEY's owner table record
Imports
java.util.List, org.jetbrains.annotations.NotNull

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 Summary

Modifier and TypeMethod and Description
public @NotNull Constraint
constraint()

Deprecated as a consequence of Constraint being deprecated.
Get this KEY as a formal Constraint specification.
public boolean
enforced()

Whether this key is being enforced.

public @NotNull List<TableField<R, ?>>
getFields()

The fields that make up the KEY

public @NotNull @NotNull TableField<R, ?>[]
getFieldsArray()

Deprecated as a consequence of TableField being deprecated.
The fields that make up the KEY
public @NotNull Table<R>
getTable()

The Key's owner table

public boolean
nullable()

Whether this key is (partially) nullable.

Inherited from org.jooq.Named:
$namegetCommentgetCommentPartgetNamegetQualifiedNamegetUnqualifiedName

Method Detail

constraintback to summary
public @NotNull Constraint constraint()

Deprecated

as a consequence of Constraint being deprecated. See corresponding docs for further information.

Get this KEY as a formal Constraint specification.

Annotations
@NotNull
enforcedback to summary
public boolean enforced()

Whether this key is being enforced.

getFieldsback to summary
public @NotNull List<TableField<R, ?>> getFields()

The fields that make up the KEY

Annotations
@NotNull
getFieldsArrayback to summary
public @NotNull @NotNull TableField<R, ?>[] getFieldsArray()

Deprecated

as a consequence of TableField being deprecated. See corresponding docs for further information.

The fields that make up the KEY

Annotations
@NotNull
See Also
getFields()
getTableback to summary
public @NotNull Table<R> getTable()

The Key's owner table

Annotations
@NotNull
nullableback to summary
public boolean nullable()

Whether this key is (partially) nullable.