org.jooq.util
Interface ColumnDefinition

All Superinterfaces:
Definition, TypedElementDefinition
All Known Implementing Classes:
DefaultColumnDefinition

public interface ColumnDefinition
extends TypedElementDefinition

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.
 TableDefinition getTable()
          The column's owner table
 String getTableName()
          Deprecated. - 1.5.9 - Use getTable() instead
 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.
 
Methods inherited from interface org.jooq.util.TypedElementDefinition
getType
 
Methods inherited from interface org.jooq.util.Definition
getComment, getDatabase, getName, getNameLC, getNameUC, getOverload, getQualifiedName, getSchemaName
 

Method Detail

getTable

TableDefinition getTable()
The column's owner table


getTableName

@Deprecated
String getTableName()
Deprecated. - 1.5.9 - Use getTable() instead

The column's table name


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.



Copyright © 2011. All Rights Reserved.