R
- The KEY
's owner table recordpublic interface Key<R extends Record> extends Named
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.
Modifier and Type | Method and Description |
---|---|
@NotNull Constraint |
constraint()
Get this
KEY as a formal Constraint specification. |
boolean |
enforced()
Whether this key is being enforced.
|
@NotNull List<TableField<R,?>> |
getFields()
The fields that make up the
KEY |
@NotNull TableField<R,?>[] |
getFieldsArray()
The fields that make up the
KEY |
@NotNull Table<R> |
getTable()
The
Key 's owner table |
boolean |
nullable()
Whether this key is (partially) nullable.
|
getComment, getCommentPart, getName, getQualifiedName, getUnqualifiedName
@NotNull @NotNull List<TableField<R,?>> getFields()
KEY
@NotNull @NotNull TableField<R,?>[] getFieldsArray()
KEY
getFields()
@NotNull @NotNull Constraint constraint()
KEY
as a formal Constraint
specification.boolean enforced()
boolean nullable()
Copyright © 2021. All rights reserved.