public class MySqlCreateTableVisitor extends java.lang.Object implements FieldTypeVisitor
Modifier and Type | Field and Description |
---|---|
static Feature |
FORCE_MYISAM_ON_FULLTEXT_FEATURE |
static Feature |
FOREIGN_KEY_DELETE_CASCASE_FEATURE |
static Feature |
FOREIGN_KEY_FEATURE |
static Feature |
USE_TIMESTAMP |
Constructor and Description |
---|
MySqlCreateTableVisitor(MysqlSQLContext ctx,
java.lang.StringBuilder sb,
java.util.List<java.lang.Object> args) |
Modifier and Type | Method and Description |
---|---|
void |
additions(boolean create) |
boolean |
useIndex(TableSpecification.IndexType i)
Do we use this type of index
|
void |
visitAutoIncrement() |
void |
visitBlobType(BlobType blobType) |
void |
visitBooleanFieldType(BooleanFieldType booleanFieldType) |
void |
visitDateFieldType(DateFieldType dateFieldType) |
void |
visitForeignKey(java.lang.String name,
ReferenceFieldType referenceField)
Add a foreign key definition for a reference field.
|
void |
visitFullTextIndex(java.util.function.UnaryOperator<java.lang.String> name_map,
TableSpecification.FullTextIndex idx) |
void |
visitIndex(java.util.function.UnaryOperator<java.lang.String> name_map,
TableSpecification.Index idx) |
<N extends java.lang.Number> |
visitNumberFieldType(NumberFieldType<N> numberFieldType) |
void |
visitPlaceHolderFieldType(PlaceHolderFieldType p) |
void |
visitStringFieldType(StringFieldType stringFieldType) |
public static final Feature FOREIGN_KEY_FEATURE
public static final Feature FOREIGN_KEY_DELETE_CASCASE_FEATURE
public static final Feature FORCE_MYISAM_ON_FULLTEXT_FEATURE
public static final Feature USE_TIMESTAMP
public MySqlCreateTableVisitor(MysqlSQLContext ctx, java.lang.StringBuilder sb, java.util.List<java.lang.Object> args)
public void visitDateFieldType(DateFieldType dateFieldType)
visitDateFieldType
in interface FieldTypeVisitor
public <N extends java.lang.Number> void visitNumberFieldType(NumberFieldType<N> numberFieldType)
visitNumberFieldType
in interface FieldTypeVisitor
public void visitStringFieldType(StringFieldType stringFieldType)
visitStringFieldType
in interface FieldTypeVisitor
public void visitBooleanFieldType(BooleanFieldType booleanFieldType)
visitBooleanFieldType
in interface FieldTypeVisitor
public void visitBlobType(BlobType blobType)
visitBlobType
in interface FieldTypeVisitor
public void visitIndex(java.util.function.UnaryOperator<java.lang.String> name_map, TableSpecification.Index idx)
visitIndex
in interface FieldTypeVisitor
public void visitAutoIncrement()
visitAutoIncrement
in interface FieldTypeVisitor
public void visitForeignKey(java.lang.String name, ReferenceFieldType referenceField)
FieldTypeVisitor
visitForeignKey
in interface FieldTypeVisitor
public void visitFullTextIndex(java.util.function.UnaryOperator<java.lang.String> name_map, TableSpecification.FullTextIndex idx)
visitFullTextIndex
in interface FieldTypeVisitor
public boolean useIndex(TableSpecification.IndexType i)
FieldTypeVisitor
useIndex
in interface FieldTypeVisitor
public void visitPlaceHolderFieldType(PlaceHolderFieldType p)
visitPlaceHolderFieldType
in interface FieldTypeVisitor
public void additions(boolean create)
additions
in interface FieldTypeVisitor