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 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 i)
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