|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jooq.util.AbstractDefinition
org.jooq.util.DefaultColumnDefinition
public class DefaultColumnDefinition
A base implementation for column definitions.
| Constructor Summary | |
|---|---|
DefaultColumnDefinition(TableDefinition table,
String name,
int position,
DataTypeDefinition type,
boolean nullable,
boolean isIdentity,
String comment)
|
|
DefaultColumnDefinition(TableDefinition table,
String name,
int position,
DataTypeDefinition type,
boolean isIdentity,
String comment)
Deprecated. - 2.1.0 - Use the other constructor instead |
|
| Method Summary | |
|---|---|
T |
getContainer()
The container that contains this typed element |
List<Definition> |
getDefinitionPath()
|
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. |
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 |
| Methods inherited from class org.jooq.util.AbstractDefinition |
|---|
create, equals, getComment, getConnection, getDatabase, getDialect, getInputName, getName, getOutputName, getOverload, getQualifiedInputName, getQualifiedName, getQualifiedOutputName, getSchema, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jooq.util.TypedElementDefinition |
|---|
getContainer |
| Methods inherited from interface org.jooq.util.Definition |
|---|
getComment, getDatabase, getDefinitionPath, getInputName, getName, getOutputName, getOverload, getQualifiedInputName, getQualifiedName, getQualifiedOutputName, getSchema |
| Constructor Detail |
|---|
@Deprecated
public DefaultColumnDefinition(TableDefinition table,
String name,
int position,
DataTypeDefinition type,
boolean isIdentity,
String comment)
public DefaultColumnDefinition(TableDefinition table,
String name,
int position,
DataTypeDefinition type,
boolean nullable,
boolean isIdentity,
String comment)
| Method Detail |
|---|
public final int getPosition()
ColumnDefinition
getPosition in interface ColumnDefinitionpublic final DataTypeDefinition getType()
TypedElementDefinition
getType in interface TypedElementDefinition<TableDefinition>public final UniqueKeyDefinition getPrimaryKey()
ColumnDefinitionnull if this column is not part of a primary key.
getPrimaryKey in interface ColumnDefinitionpublic List<UniqueKeyDefinition> getUniqueKeys()
ColumnDefinition
getUniqueKeys in interface ColumnDefinitionpublic final ForeignKeyDefinition getForeignKey()
ColumnDefinitionnull if this column is not part of a foreign key.
getForeignKey in interface ColumnDefinitionpublic final boolean isIdentity()
ColumnDefinitionIDENTITY column.
isIdentity in interface ColumnDefinitionpublic final boolean isNullable()
ColumnDefinition
isNullable in interface ColumnDefinitionpublic final T getContainer()
TypedElementDefinition
getContainer in interface TypedElementDefinition<T extends Definition>public List<Definition> getDefinitionPath()
getDefinitionPath in interface Definition[schema].[package].[routine].[parameter]
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||