public interface UniqueKeyDefinition extends Definition
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.
|
TableDefinition |
getTable()
The table holding this key
|
boolean |
isPrimaryKey()
Whether this unique key is the primary key
|
getCatalog, getComment, getDatabase, getDefinitionPath, getInputName, getName, getOutputName, getOverload, getQualifiedInputName, getQualifiedInputNamePart, getQualifiedName, getQualifiedNamePart, getQualifiedOutputName, getQualifiedOutputNamePart, getSchemaboolean isPrimaryKey()
List<ColumnDefinition> getKeyColumns()
List<ForeignKeyDefinition> getForeignKeys()
TableDefinition getTable()
Copyright © 2019. All rights reserved.