Module io.github.mmm.entity.bean
Class CreateTable<E extends EntityBean>
- java.lang.Object
-
- io.github.mmm.marshall.AbstractMarshallingObject
-
- io.github.mmm.entity.bean.sql.AbstractClause
-
- io.github.mmm.entity.bean.sql.AbstractTypedClause<E,SELF>
-
- io.github.mmm.entity.bean.sql.AbstractEntityClause<E,CreateTable<E>>
-
- io.github.mmm.entity.bean.sql.create.CreateTable<E>
-
- Type Parameters:
E- type of theentity.
- All Implemented Interfaces:
Clause,StartClause,TypedClause<E>,io.github.mmm.marshall.MarshallableObject,io.github.mmm.marshall.Marshaller<Object>,io.github.mmm.marshall.Marshalling<Object>,io.github.mmm.marshall.MarshallingObject,io.github.mmm.marshall.UnmarshallableObject,io.github.mmm.marshall.Unmarshaller<Object>
public class CreateTable<E extends EntityBean> extends AbstractEntityClause<E,CreateTable<E>> implements StartClause
- Since:
- 1.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static StringNAME_CREATE_TABLEName ofCreateTablefor marshaling.-
Fields inherited from class io.github.mmm.entity.bean.sql.AbstractEntityClause
entity, NAME_ALIAS, NAME_ENTITY
-
-
Constructor Summary
Constructors Constructor Description CreateTable(E entity)The constructor.CreateTable(E entity, String entityName)The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateTableColumns<E>column(io.github.mmm.value.PropertyPath<?> property)CreateTableColumns<E>column(io.github.mmm.value.PropertyPath<?>... properties)CreateTableColumns<E>columnNotNull(io.github.mmm.value.PropertyPath<?> property)CreateTableColumns<E>columns()CreateTableColumns<E>columnUnique(io.github.mmm.value.PropertyPath<?> property)protected StringgetMarshallingName()-
Methods inherited from class io.github.mmm.entity.bean.sql.AbstractEntityClause
as, getAlias, getEntity, getEntityName, readProperty, setEntityName, writeProperties
-
Methods inherited from class io.github.mmm.entity.bean.sql.AbstractTypedClause
self
-
Methods inherited from class io.github.mmm.entity.bean.sql.AbstractClause
toString
-
-
-
-
Field Detail
-
NAME_CREATE_TABLE
public static final String NAME_CREATE_TABLE
Name ofCreateTablefor marshaling.- See Also:
- Constant Field Values
-
-
Method Detail
-
getMarshallingName
protected String getMarshallingName()
- Specified by:
getMarshallingNamein classAbstractClause- Returns:
- the name of the property for this clause.
-
column
public CreateTableColumns<E> column(io.github.mmm.value.PropertyPath<?> property)
- Parameters:
property- thepropertyto add as column.- Returns:
- the
CreateTableColumnsfor fluent API calls.
-
columnNotNull
public CreateTableColumns<E> columnNotNull(io.github.mmm.value.PropertyPath<?> property)
- Parameters:
property- thepropertyto add as column withNotNullConstraint.- Returns:
- the
CreateTableColumnsfor fluent API calls.
-
columnUnique
public CreateTableColumns<E> columnUnique(io.github.mmm.value.PropertyPath<?> property)
- Parameters:
property- thepropertyto add as column withUniqueConstraint.- Returns:
- the
CreateTableColumnsfor fluent API calls.
-
column
public CreateTableColumns<E> column(io.github.mmm.value.PropertyPath<?>... properties)
- Parameters:
properties- thepropertiesto add as columns.- Returns:
- the
CreateTableColumnsfor fluent API calls.
-
columns
public CreateTableColumns<E> columns()
- Returns:
- the
CreateTableColumnsfor fluent API calls.
-
-