org.eobjects.metamodel.create
Interface ColumnBuilder<T extends ColumnBuilder<?>>

Type Parameters:
T - the return type of the builder methods
All Known Subinterfaces:
ColumnCreationBuilder
All Known Implementing Classes:
CreateTableColumnBuilder

public interface ColumnBuilder<T extends ColumnBuilder<?>>

Abstract interface for components that build columns. Defines methods for refining particular properties of the column build.


Method Summary
 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 DataContexts).
 T ofSize(int size)
          Defines the size of the created column.
 T ofType(ColumnType type)
          Defines the ColumnType of the created column.
 

Method Detail

like

T like(Column column)
Builds several properties of a column, based on another Column object as a prototype.

Parameters:
column - a prototype for the column being built.
Returns:
a builder object for further column creation.

ofType

T ofType(ColumnType type)
Defines the ColumnType of the created column.

Parameters:
type - the column type of the created column.
Returns:
a builder object for further column creation.

ofNativeType

T ofNativeType(String nativeType)
Defines the native type of the created column (useful especially for SQL based DataContexts).

Parameters:
nativeType - the native type of the created column
Returns:
a builder object for further column creation.

ofSize

T ofSize(int size)
Defines the size of the created column.

Parameters:
size - the size of the created column.
Returns:
a builder object for further column creation.

nullable

T nullable(boolean nullable)
Defines if the created column should be nullable or not.

Parameters:
nullable - if the created column should be nullable or not.
Returns:
a builder object for further column creation.

asPrimaryKey

T asPrimaryKey()
Defines that the created column should be a primary key

Returns:
a builder object for further column creation.


Copyright © 2007-2013. All Rights Reserved.