public class DefaultColumnDefinition extends AbstractTypedElementDefinition<TableDefinition> implements ColumnDefinition
| Constructor and Description |
|---|
DefaultColumnDefinition(TableDefinition table,
String name,
int position,
DataTypeDefinition type,
boolean isIdentity,
String comment) |
| Modifier and Type | Method and Description |
|---|---|
List<ForeignKeyDefinition> |
getForeignKeys()
All definitions of foreign keys that this column is part of.
|
int |
getPosition()
The object's 1-based position in the parent.
|
UniqueKeyDefinition |
getPrimaryKey()
A definition for the primary key that this column is part of, or
null if this column is not part of a primary key. |
List<UniqueKeyDefinition> |
getUniqueKeys()
All definitions of unique keys that this column is part of.
|
boolean |
isIdentity()
Whether this column is the table's
IDENTITY column. |
boolean |
isNullable()
Whether the column is nullable.
|
customType, getContainer, getDataType, getDefinedType, getDefinitionPath, getDomain, getType, getType, mapDefinedTypecreate, create, equals, getCatalog, getComment, getConnection, getDatabase, getDialect, getInputName, getName, getOutputName, getOverload, getPackage, getQualifiedInputName, getQualifiedInputNamePart, getQualifiedName, getQualifiedNamePart, getQualifiedOutputName, getQualifiedOutputNamePart, getSchema, getSource, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetContainer, getDefinedType, getDomain, getType, getTypegetCatalog, getComment, getDatabase, getDefinitionPath, getInputName, getName, getOutputName, getOverload, getPackage, getQualifiedInputName, getQualifiedInputNamePart, getQualifiedName, getQualifiedNamePart, getQualifiedOutputName, getQualifiedOutputNamePart, getSchema, getSourcepublic DefaultColumnDefinition(TableDefinition table, String name, int position, DataTypeDefinition type, boolean isIdentity, String comment)
public final int getPosition()
PositionedDefinitiongetPosition in interface PositionedDefinitionpublic final UniqueKeyDefinition getPrimaryKey()
ColumnDefinitionnull if this column is not part of a primary key.getPrimaryKey in interface ColumnDefinitionpublic List<UniqueKeyDefinition> getUniqueKeys()
ColumnDefinitiongetUniqueKeys in interface ColumnDefinitionpublic final List<ForeignKeyDefinition> getForeignKeys()
ColumnDefinitiongetForeignKeys in interface ColumnDefinitionpublic final boolean isIdentity()
ColumnDefinitionIDENTITY column.isIdentity in interface ColumnDefinitionpublic final boolean isNullable()
ColumnDefinitionisNullable in interface ColumnDefinitionCopyright © 2021. All rights reserved.