public class PostgresqlCreateTableVisitor extends java.lang.Object implements FieldTypeVisitor
| Constructor and Description |
|---|
PostgresqlCreateTableVisitor(PostgresqlSQLContext 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 i) |
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 PostgresqlCreateTableVisitor(PostgresqlSQLContext ctx, java.lang.StringBuilder sb, java.util.List<java.lang.Object> args)
public void visitDateFieldType(DateFieldType dateFieldType)
visitDateFieldType in interface FieldTypeVisitorpublic <N extends java.lang.Number> void visitNumberFieldType(NumberFieldType<N> numberFieldType)
visitNumberFieldType in interface FieldTypeVisitorpublic void visitStringFieldType(StringFieldType stringFieldType)
visitStringFieldType in interface FieldTypeVisitorpublic void visitBooleanFieldType(BooleanFieldType booleanFieldType)
visitBooleanFieldType in interface FieldTypeVisitorpublic void visitBlobType(BlobType blobType)
visitBlobType in interface FieldTypeVisitorpublic void visitIndex(java.util.function.UnaryOperator<java.lang.String> name_map,
TableSpecification.Index idx)
visitIndex in interface FieldTypeVisitorpublic void visitAutoIncrement()
visitAutoIncrement in interface FieldTypeVisitorpublic void visitForeignKey(java.lang.String name,
ReferenceFieldType referenceField)
FieldTypeVisitorvisitForeignKey in interface FieldTypeVisitorpublic void visitFullTextIndex(java.util.function.UnaryOperator<java.lang.String> name_map,
TableSpecification.FullTextIndex i)
visitFullTextIndex in interface FieldTypeVisitorpublic boolean useIndex(TableSpecification.IndexType i)
FieldTypeVisitoruseIndex in interface FieldTypeVisitorpublic void visitPlaceHolderFieldType(PlaceHolderFieldType p)
visitPlaceHolderFieldType in interface FieldTypeVisitorpublic void additions(boolean create)
additions in interface FieldTypeVisitor