Package io.vertx.tp.modular.metadata
Class AbstractSentence
java.lang.Object
io.vertx.tp.modular.metadata.AbstractSentence
- All Implemented Interfaces:
SqlStatement,AoSentence
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final io.vertx.up.commune.config.Databaseprotected final SqlTypeProviderFields inherited from interface io.vertx.tp.atom.cv.sql.SqlStatement
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckFieldType(MField field, ConcurrentMap<String, Object> columnDetail) columnAlter(String tableName, MField field) columnDrop(String tableName, String column) columnDropRename(String tableName, String column, String newColumn, String fieldType) columnType(MField field) constraintAdd(String tableName, MKey key) constraintDrop(String tableName, String constraintName) protected StringdefineColumn(MField field) protected StringdefineSuffix(MField field, String actualType) protected abstract ConcurrentMap<String,String> protected io.horizon.uca.log.Annalprotected abstract ConcurrentMap<String,String> protected String类型定义io.vertx.core.json.JsonArraymappingList(String key) segmentField(MField field) 生成列定义的SQL语句:`NAME` VARCHAR(255) NOT NULLsegmentKey(MKey key) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.vertx.tp.modular.metadata.AoSentence
columnDdl, expectTable
-
Field Details
-
database
protected final transient io.vertx.up.commune.config.Database database -
typeProvider
-
-
Constructor Details
-
AbstractSentence
public AbstractSentence(io.vertx.up.commune.config.Database database)
-
-
Method Details
-
getPrecisionMap
-
getLengthMap
-
segmentField
生成列定义的SQL语句:`NAME` VARCHAR(255) NOT NULL- Specified by:
segmentFieldin interfaceAoSentence
-
segmentKey
- Specified by:
segmentKeyin interfaceAoSentence
-
constraintDrop
- Specified by:
constraintDropin interfaceAoSentence
-
constraintAdd
- Specified by:
constraintAddin interfaceAoSentence
-
columnDrop
- Specified by:
columnDropin interfaceAoSentence
-
columnDropRename
- Specified by:
columnDropRenamein interfaceAoSentence
-
columnAdd
- Specified by:
columnAddin interfaceAoSentence
-
columnAlter
- Specified by:
columnAlterin interfaceAoSentence
-
columnType
- Specified by:
columnTypein interfaceAoSentence
-
mappingList
- Specified by:
mappingListin interfaceAoSentence
-
checkFieldType
- Specified by:
checkFieldTypein interfaceAoSentence
-
getType
类型定义 -
defineSuffix
-
defineColumn
-
getLogger
protected io.horizon.uca.log.Annal getLogger()
-