public interface UniqueKeyDefinition extends ConstraintDefinition
This object may either represent a primary key or a unique key. It holds a list of foreign keys referencing this key.
| Modifier and Type | Method and Description |
|---|---|
List<ForeignKeyDefinition> |
getForeignKeys()
The foreign keys referencing this primary key
|
List<ColumnDefinition> |
getKeyColumns()
The list of columns making up the primary key.
|
boolean |
isPrimaryKey()
Whether this unique key is the primary key
|
UniqueKeyDefinition |
resolveReferencedKey()
Resolve a referenced key.
|
enforced, getTablegetCatalog, getComment, getDatabase, getDefinitionPath, getInputName, getName, getOutputName, getOverload, getPackage, getQualifiedInputName, getQualifiedInputNamePart, getQualifiedName, getQualifiedNamePart, getQualifiedOutputName, getQualifiedOutputNamePart, getSchema, getSourceboolean isPrimaryKey()
List<ColumnDefinition> getKeyColumns()
List<ForeignKeyDefinition> getForeignKeys()
UniqueKeyDefinition resolveReferencedKey()
If this key coincides with a foreign key, resolve that foreign key
recursively. In case of ambiguity (two foreign keys coinciding with a
single unique key), this returns null.
Copyright © 2021. All rights reserved.