-
- Type Parameters:
R- TheKEY's owner table record
- All Superinterfaces:
Named,QueryPart,Serializable
- All Known Subinterfaces:
ForeignKey<R,O>,UniqueKey<R>
public interface Key<R extends Record> extends Named
AKeyis an object representing aUNIQUE KEY, aPRIMARY KEY, or aFOREIGN KEY.Instances of this type cannot be created directly. They are available from generated code.
- Author:
- Lukas Eder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull Constraintconstraint()Get thisKEYas a formalConstraintspecification.booleanenforced()Whether this key is being enforced.@NotNull List<TableField<R,?>>getFields()The fields that make up theKEY@NotNull TableField<R,?>[]getFieldsArray()The fields that make up theKEY@NotNull Table<R>getTable()TheKey's owner tablebooleannullable()Whether this key is (partially) nullable.-
Methods inherited from interface org.jooq.Named
getComment, getCommentPart, getName, getQualifiedName, getUnqualifiedName
-
-
-
-
Method Detail
-
getFields
@NotNull @NotNull List<TableField<R,?>> getFields()
The fields that make up theKEY
-
getFieldsArray
@NotNull @NotNull TableField<R,?>[] getFieldsArray()
The fields that make up theKEY- See Also:
getFields()
-
constraint
@NotNull @NotNull Constraint constraint()
Get thisKEYas a formalConstraintspecification.
-
enforced
boolean enforced()
Whether this key is being enforced.
-
nullable
boolean nullable()
Whether this key is (partially) nullable.
-
-