public abstract class AbstractSentence extends Object implements AoSentence, SqlStatement
| Modifier and Type | Field and Description |
|---|---|
protected io.vertx.up.commune.config.Database |
database |
protected SqlTypeProvider |
typeProvider |
ATBA_COLUMN, ATBA_CONSTRAINT, ATBD_COLUMN, ATBD_CONSTRAINT, ATBM_COLUMN, ATBR_COLUMN, CONSTRAING_FK, CONSTRAINT_PK, CONSTRAINT_UK, OP_AGGREGATE, OP_ASSIGN, OP_COUNT, OP_DELETE, OP_INSERT, OP_ORDER, OP_ORDER_BY, OP_SELECT, OP_UPDATE, OP_WHERE, SCHEMA_NULL, SCHEMA_UNIQUE, TB_CREATE, TB_DROP, TB_RENAME, V_CREATE, V_DROP| Constructor and Description |
|---|
AbstractSentence(io.vertx.up.commune.config.Database database) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcolumnDdl, expectTableprotected final transient io.vertx.up.commune.config.Database database
protected final transient SqlTypeProvider typeProvider
public AbstractSentence(io.vertx.up.commune.config.Database database)
protected abstract ConcurrentMap<String,String> getPrecisionMap()
protected abstract ConcurrentMap<String,String> getLengthMap()
public String segmentField(MField field)
生成列定义的SQL语句:NAME VARCHAR(255) NOT NULL
segmentField in interface AoSentencepublic String segmentKey(MKey key)
segmentKey in interface AoSentencepublic String constraintDrop(String tableName, String constraintName)
constraintDrop in interface AoSentencepublic String constraintAdd(String tableName, MKey key)
constraintAdd in interface AoSentencepublic String columnDrop(String tableName, String column)
columnDrop in interface AoSentencepublic String columnDropRename(String tableName, String column, String newColumn, String fieldType)
columnDropRename in interface AoSentencepublic String columnAdd(String tableName, MField field)
columnAdd in interface AoSentencepublic String columnAlter(String tableName, MField field)
columnAlter in interface AoSentencepublic String columnType(MField field)
columnType in interface AoSentencepublic io.vertx.core.json.JsonArray mappingList(String key)
mappingList in interface AoSentencepublic FieldCheckResult checkFieldType(MField field, ConcurrentMap<String,Object> columnDetail)
checkFieldType in interface AoSentenceprotected io.vertx.up.log.Annal getLogger()
Copyright © 2020. All rights reserved.