- java.lang.Object
-
- io.github.mmm.marshall.AbstractMarshallingObject
-
- io.github.mmm.entity.bean.sql.AbstractClause
-
- io.github.mmm.entity.bean.sql.create.CreateIndex
-
- All Implemented Interfaces:
Clause,StartClause,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 CreateIndex extends AbstractClause implements StartClause
- Since:
- 1.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static StringNAME_CREATE_INDEXName ofCreateIndexfor marshaling.
-
Constructor Summary
Constructors Constructor Description CreateIndex(String name)The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetMarshallingName()StringgetName()<E extends EntityBean>
CreateIndexOn<E>on(E entity)<E extends EntityBean>
CreateIndexOn<E>on(E entity, String entityName)voidsetName(String name)-
Methods inherited from class io.github.mmm.entity.bean.sql.AbstractClause
readProperty, toString, writeProperties
-
-
-
-
Field Detail
-
NAME_CREATE_INDEX
public static final String NAME_CREATE_INDEX
Name ofCreateIndexfor marshaling.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CreateIndex
public CreateIndex(String name)
The constructor.- Parameters:
name- thename of the index.
-
-
Method Detail
-
getName
public String getName()
- Returns:
- the name of the index.
-
getMarshallingName
protected String getMarshallingName()
- Specified by:
getMarshallingNamein classAbstractClause- Returns:
- the name of the property for this clause.
-
on
public <E extends EntityBean> CreateIndexOn<E> on(E entity)
- Type Parameters:
E- type of theentity.- Parameters:
entity- theentity(table) to create an index on.- Returns:
- the
CreateIndexOnfor fluent API calls.
-
on
public <E extends EntityBean> CreateIndexOn<E> on(E entity, String entityName)
- Type Parameters:
E- type of theentity.- Parameters:
entity- theentity(table) to create an index on.entityName- theentity name(table name) to create an index on.- Returns:
- the
CreateIndexOnfor fluent API calls.
-
-