-
- 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
AKey
is 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 Constraint
constraint()
Get thisKEY
as a formalConstraint
specification.boolean
enforced()
Whether this key is being enforced.List<TableField<R,?>>
getFields()
The fields that make up theKEY
TableField<R,?>[]
getFieldsArray()
The fields that make up theKEY
Table<R>
getTable()
TheKey
's owner table-
Methods inherited from interface org.jooq.Named
getComment, getName, getQualifiedName, getUnqualifiedName
-
-
-
-
Method Detail
-
getFields
List<TableField<R,?>> getFields()
The fields that make up theKEY
-
getFieldsArray
TableField<R,?>[] getFieldsArray()
The fields that make up theKEY
- See Also:
getFields()
-
constraint
Constraint constraint()
Get thisKEY
as a formalConstraint
specification.
-
enforced
boolean enforced()
Whether this key is being enforced.
-
-