org.jooq.util
Interface ColumnDefinition

All Superinterfaces:
Definition, TypedElementDefinition<TableDefinition>
All Known Implementing Classes:
DefaultColumnDefinition

public interface ColumnDefinition
extends TypedElementDefinition<TableDefinition>

An interface defining a column of a table

Author:
Lukas Eder

Method Summary
 ForeignKeyDefinition getForeignKey()
          A definition for the foreign key that this column is part of, or null if this column is not part of a foreign key.
 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
 
Methods inherited from interface org.jooq.util.TypedElementDefinition
getContainer, getType
 
Methods inherited from interface org.jooq.util.Definition
getComment, getDatabase, getDefinitionPath, getInputName, getName, getOutputName, getOverload, getQualifiedInputName, getQualifiedName, getQualifiedOutputName, getSchema
 

Method Detail

getPosition

int getPosition()
The column position in the table


getPrimaryKey

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.


getUniqueKeys

List<UniqueKeyDefinition> getUniqueKeys()
All definitions of unique keys that this column is part of.


getForeignKey

ForeignKeyDefinition getForeignKey()
A definition for the foreign key that this column is part of, or null if this column is not part of a foreign key.


isIdentity

boolean isIdentity()
Whether this column is the table's IDENTITY column.


isNullable

boolean isNullable()
Whether the column is nullable



Copyright © 2012. All Rights Reserved.