- java.lang.Object
-
- org.jooq.meta.AbstractDefinition
-
- org.jooq.meta.AbstractTypedElementDefinition<TableDefinition>
-
- org.jooq.meta.DefaultColumnDefinition
-
- All Implemented Interfaces:
ColumnDefinition,Definition,PositionedDefinition,TypedElementDefinition<TableDefinition>
public class DefaultColumnDefinition extends AbstractTypedElementDefinition<TableDefinition> implements ColumnDefinition
A base implementation for column definitions.- Author:
- Lukas Eder
-
-
Constructor Summary
Constructors Constructor Description DefaultColumnDefinition(TableDefinition table, String name, int position, DataTypeDefinition type, boolean isIdentity, String comment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ForeignKeyDefinition>getForeignKeys()All definitions of foreign keys that this column is part of.List<UniqueKeyDefinition>getKeys()All definitions of unique and primary keys that this column is part of.intgetPosition()The object's 1-based position in the parent.UniqueKeyDefinitiongetPrimaryKey()A definition for the primary key that this column is part of, ornullif this column is not part of a primary key.List<UniqueKeyDefinition>getUniqueKeys()All definitions of unique keys that this column is part of.booleanisIdentity()Whether this column is the table'sIDENTITYcolumn.-
Methods inherited from class org.jooq.meta.AbstractTypedElementDefinition
customType, getContainer, getDataType, getDefinedType, getDefinitionPath, getDomain, getType, getType, mapDefinedType
-
Methods inherited from class org.jooq.meta.AbstractDefinition
create, create, equals, getCatalog, getComment, getConnection, getDatabase, getDialect, getInputName, getName, getOutputName, getOverload, getPackage, getQualifiedInputName, getQualifiedInputNamePart, getQualifiedName, getQualifiedNamePart, getQualifiedOutputName, getQualifiedOutputNamePart, getSchema, getSource, hashCode, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jooq.meta.Definition
getCatalog, getComment, getDatabase, getDefinitionPath, getInputName, getName, getOutputName, getOverload, getPackage, getQualifiedInputName, getQualifiedInputNamePart, getQualifiedName, getQualifiedNamePart, getQualifiedOutputName, getQualifiedOutputNamePart, getSchema, getSource
-
Methods inherited from interface org.jooq.meta.TypedElementDefinition
getContainer, getDefinedType, getDomain, getType, getType
-
-
-
-
Constructor Detail
-
DefaultColumnDefinition
public DefaultColumnDefinition(TableDefinition table, String name, int position, DataTypeDefinition type, boolean isIdentity, String comment)
-
-
Method Detail
-
getPosition
public final int getPosition()
Description copied from interface:PositionedDefinitionThe object's 1-based position in the parent.- Specified by:
getPositionin interfacePositionedDefinition
-
getPrimaryKey
public final UniqueKeyDefinition getPrimaryKey()
Description copied from interface:ColumnDefinitionA definition for the primary key that this column is part of, ornullif this column is not part of a primary key.- Specified by:
getPrimaryKeyin interfaceColumnDefinition
-
getUniqueKeys
public final List<UniqueKeyDefinition> getUniqueKeys()
Description copied from interface:ColumnDefinitionAll definitions of unique keys that this column is part of.- Specified by:
getUniqueKeysin interfaceColumnDefinition
-
getKeys
public final List<UniqueKeyDefinition> getKeys()
Description copied from interface:ColumnDefinitionAll definitions of unique and primary keys that this column is part of.- Specified by:
getKeysin interfaceColumnDefinition
-
getForeignKeys
public final List<ForeignKeyDefinition> getForeignKeys()
Description copied from interface:ColumnDefinitionAll definitions of foreign keys that this column is part of.- Specified by:
getForeignKeysin interfaceColumnDefinition
-
isIdentity
public final boolean isIdentity()
Description copied from interface:ColumnDefinitionWhether this column is the table'sIDENTITYcolumn.- Specified by:
isIdentityin interfaceColumnDefinition
-
-