Interface UniqueKey<R extends Record>
- Type Parameters:
R- TheKEY's owner table record
- All Superinterfaces:
Key<R>, Named, QueryPart, Serializable
A
UniqueKey is an object representing a UNIQUE KEY
or a PRIMARY KEY. It can be referenced by a ForeignKey.
Instances of this type cannot be created directly. They are available from generated code.
- Author:
- Lukas Eder
-
Method Summary
Modifier and TypeMethodDescription@NotNull List<ForeignKey<?, R>> A list of allForeignKeys, referencing thisUniqueKeybooleanWhether this is the table's primary key.Methods inherited from interface Key
constraint, deferrable, enforced, getFields, getFieldsArray, getTable, initiallyDeferred, nullableMethods inherited from interface Named
$name, getComment, getCommentPart, getName, getQualifiedName, getUnqualifiedName
-
Method Details
-
getReferences
A list of allForeignKeys, referencing thisUniqueKey -
isPrimary
boolean isPrimary()Whether this is the table's primary key.
-