-
- Type Parameters:
R
- TheKEY
's owner table record
- All Superinterfaces:
Key<R>
,Named
,QueryPart
,Serializable
public interface UniqueKey<R extends Record> extends Key<R>
AUniqueKey
is an object representing aUNIQUE KEY
or aPRIMARY KEY
. It can be referenced by aForeignKey
.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 List<ForeignKey<?,R>>
getReferences()
A list of allForeignKeys
, referencing thisUniqueKey
boolean
isPrimary()
Whether this is the table's primary key.-
Methods inherited from interface org.jooq.Key
constraint, enforced, getFields, getFieldsArray, getTable, nullable
-
Methods inherited from interface org.jooq.Named
getComment, getCommentPart, getName, getQualifiedName, getUnqualifiedName
-
-
-
-
Method Detail
-
getReferences
@NotNull @NotNull List<ForeignKey<?,R>> getReferences()
A list of allForeignKeys
, referencing thisUniqueKey
-
isPrimary
boolean isPrimary()
Whether this is the table's primary key.
-
-