|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eobjects.metamodel.create.CreateTableColumnBuilder
public final class CreateTableColumnBuilder
Column builder for CreateTable.
| Constructor Summary | |
|---|---|
CreateTableColumnBuilder(CreateTable createTable,
MutableColumn column)
|
|
| Method Summary | |
|---|---|
T |
asPrimaryKey()
Defines that the created column should be a primary key |
protected MutableColumn |
getColumn()
|
protected T |
getReturnObject()
|
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 DataContexts). |
T |
ofSize(int size)
Defines the size of the created column. |
T |
ofType(ColumnType type)
Defines the ColumnType of the created column. |
void |
run(UpdateCallback callback)
Invoked by MetaModel when the update script should be run. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.eobjects.metamodel.create.ColumnBuilder |
|---|
asPrimaryKey, like, nullable, ofNativeType, ofSize, ofType |
| Constructor Detail |
|---|
public CreateTableColumnBuilder(CreateTable createTable,
MutableColumn column)
| Method Detail |
|---|
public void run(UpdateCallback callback)
UpdateScriptUpdateCallback.
run in interface UpdateScriptrun in interface Action<UpdateCallback>protected MutableColumn getColumn()
protected T getReturnObject()
public final T like(Column column)
ColumnBuilderColumn
object as a prototype.
like in interface ColumnBuilder<T extends ColumnBuilder<?>>column - a prototype for the column being built.
public final T ofType(ColumnType type)
ColumnBuilderColumnType of the created column.
ofType in interface ColumnBuilder<T extends ColumnBuilder<?>>type - the column type of the created column.
public final T ofNativeType(String nativeType)
ColumnBuilderDataContexts).
ofNativeType in interface ColumnBuilder<T extends ColumnBuilder<?>>nativeType - the native type of the created column
public final T ofSize(int size)
ColumnBuilder
ofSize in interface ColumnBuilder<T extends ColumnBuilder<?>>size - the size of the created column.
public final T nullable(boolean nullable)
ColumnBuilder
nullable in interface ColumnBuilder<T extends ColumnBuilder<?>>nullable - if the created column should be nullable or not.
public final T asPrimaryKey()
ColumnBuilder
asPrimaryKey in interface ColumnBuilder<T extends ColumnBuilder<?>>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||