T
- the return type of the builder methodspublic interface ColumnBuilder<T extends ColumnBuilder<?>>
Modifier and Type | Method and Description |
---|---|
T |
asPrimaryKey()
Defines that the created column should be a primary key
|
T |
like(Column column)
Builds several properties of a column, based on another
Column
object as a prototype. |
T |
nullable(boolean nullable)
Defines if the created column should be nullable or not.
|
T |
ofNativeType(String nativeType)
Defines the native type of the created column (useful especially for SQL
based
DataContext s). |
T |
ofSize(int size)
Defines the size of the created column.
|
T |
ofType(ColumnType type)
Defines the
ColumnType of the created column. |
T like(Column column)
Column
object as a prototype.column
- a prototype for the column being built.T ofType(ColumnType type)
ColumnType
of the created column.type
- the column type of the created column.T ofNativeType(String nativeType)
DataContext
s).nativeType
- the native type of the created columnT ofSize(int size)
size
- the size of the created column.T nullable(boolean nullable)
nullable
- if the created column should be nullable or not.T asPrimaryKey()
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.