- All Superinterfaces:
Definition,PositionedDefinition,TypedElementDefinition<TableDefinition>
- All Known Implementing Classes:
DefaultColumnDefinition
public interface ColumnDefinition
extends TypedElementDefinition<TableDefinition>, PositionedDefinition
An interface defining a column of a table.
- Author:
- Lukas Eder
-
Method Summary
Modifier and TypeMethodDescriptionAll definitions of foreign keys that this column is part of.getKeys()All definitions of unique and primary keys that this column is part of.A definition for the primary key that this column is part of, ornullif this column is not part of a primary key.All definitions of unique keys that this column is part of.booleanWhether this column is the table'sIDENTITYcolumn.booleanWhether this column is readonly.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, isSyntheticMethods inherited from interface org.jooq.meta.PositionedDefinition
getPositionMethods inherited from interface org.jooq.meta.TypedElementDefinition
getContainer, getDefinedType, getDomain, getType, getType
-
Method Details
-
getPrimaryKey
UniqueKeyDefinition getPrimaryKey()A definition for the primary key that this column is part of, ornullif this column is not part of a primary key. -
getUniqueKeys
List<UniqueKeyDefinition> getUniqueKeys()All definitions of unique keys that this column is part of. -
getKeys
List<UniqueKeyDefinition> getKeys()All definitions of unique and primary keys that this column is part of. -
getForeignKeys
List<ForeignKeyDefinition> getForeignKeys()All definitions of foreign keys that this column is part of. -
isIdentity
boolean isIdentity()Whether this column is the table'sIDENTITYcolumn. -
isReadonly
boolean isReadonly()Whether this column is readonly.
-