public class DefaultColumnDefinition extends AbstractDefinition implements ColumnDefinition
| Constructor and Description |
|---|
DefaultColumnDefinition(TableDefinition table,
String name,
int position,
DataTypeDefinition type,
boolean nullable,
boolean isIdentity,
String comment) |
| Modifier and Type | Method and Description |
|---|---|
T |
getContainer()
The container that contains this typed element
|
List<Definition> |
getDefinitionPath() |
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. |
DataTypeDefinition |
getType()
The column / parameter type
|
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
|
create, equals, getComment, getConnection, getDatabase, getDialect, getInputName, getName, getOutputName, getOverload, getQualifiedInputName, getQualifiedName, getQualifiedOutputName, getSchema, hashCode, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetContainer, getTypegetComment, getDatabase, getDefinitionPath, getInputName, getName, getOutputName, getOverload, getQualifiedInputName, getQualifiedName, getQualifiedOutputName, getSchemapublic DefaultColumnDefinition(TableDefinition table, String name, int position, DataTypeDefinition type, boolean nullable, 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 ColumnDefinitionpublic final T getContainer()
TypedElementDefinitiongetContainer in interface TypedElementDefinition<T extends Definition>public List<Definition> getDefinitionPath()
getDefinitionPath in interface Definition[schema].[package].[routine].[parameter]public DataTypeDefinition getType()
TypedElementDefinitiongetType in interface TypedElementDefinition<T extends Definition>Copyright © 2013. All Rights Reserved.