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 column position in the table.
|
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, getType, getType, mapDefinedTypecreate, create, equals, getCatalog, getComment, getConnection, getDatabase, getDialect, getInputName, getName, getOutputName, getOverload, getPackage, getQualifiedInputName, getQualifiedInputNamePart, getQualifiedName, getQualifiedNamePart, getQualifiedOutputName, getQualifiedOutputNamePart, getSchema, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetContainer, getDefinedType, getType, getTypegetCatalog, getComment, getDatabase, getDefinitionPath, getInputName, getName, getOutputName, getOverload, getQualifiedInputName, getQualifiedInputNamePart, getQualifiedName, getQualifiedNamePart, getQualifiedOutputName, getQualifiedOutputNamePart, getSchemapublic DefaultColumnDefinition(TableDefinition table, String name, int position, DataTypeDefinition type, boolean isIdentity, String comment)
public final int getPosition()
ColumnDefinitiongetPosition in interface ColumnDefinitionpublic 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 © 2019. All rights reserved.