public class MysqlSqlProcessorImpl extends SqlProcessorImpl
COLUMN_DEF, COLUMN_NAME, COLUMN_SIZE, DATA_TYPE, DECIMAL_DIGITS, INDEX_NON_UNIQUE, NULLABLE, REMARKS, TYPE_NAME| Constructor and Description |
|---|
MysqlSqlProcessorImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendFooterComment(Table table,
List<String> list)
在footer增加comment
mysql 实现为空
|
protected String |
appendIncrease() |
protected void |
appendTableSpace(StringBuffer ddlBuffer,
Table table)
表空间默认实现
|
protected void |
char2DbLen(List<String> businessTypeList,
BusinessType businessType,
String databaseType) |
boolean |
checkTableExist(Table table,
String catalog,
DatabaseMetaData metadata) |
protected boolean |
checkTypeSame(String dbColumnType,
String tableDataType,
String dbDataType)
检查数据类型是否相同
|
protected String |
createAlterTypeSql(String tableName,
String fieldName,
String tableDataType) |
protected String |
delimiter(String name) |
protected void |
getChangedFooterComment(Connection connection,
Table table,
List<String> list)
footer检查comment变化
|
protected String |
getDatabaseType() |
protected String |
getIndexName(Index index,
Table table) |
protected String |
getQueryForeignSql(Table table,
String schema) |
static TableSqlProcessor |
getTableSqlProcessor() |
appendBody, appendColumnUpdate, appendComment, appendDefaultValue, appendField, appendFooter, appendIndexReverse, appendPrimarySql, appendTypeAndDefault, checkCommentSame, checkDefSame, checkIndexBaseSame, checkTableColumn, checkTableExist, checkUniqueSame, dealAddFields, dealConstraintIndex, dealDateType, dealDefaultValueUpdate, dealDropFields, dealExistFields, dealNotNullSql, dealTableName, defaultChangedFooterComment, getClearTableSql, getColumns, getComment, getCreateSql, getDbColumnColumnDef, getDbColumnRemarks, getDbColumnType, getDbForeignList, getDbIndexColumns, getDefaultValue, getDropForeignSql, getDropIndexBaseSql, getDropSql, getFieldStdFieldName, getForeignKeySqls, getForeignKeySqls, getForeignUpdate, getIndexCreateSql, getIndexUpdate, getKeysBuffer, getOneFkSql, getOtherUpdate, getQuerySchemaName, getSchema, getSchema, getSeqTriggerSql, getSeqTriggerUpdate, getTableColumnUpdate, getTableCreateSql, getTableName, getTableProcessor, getUpdateSql, initChar2Byte, notNeedDropIndex, setTableProcessorpublic static TableSqlProcessor getTableSqlProcessor()
protected String getDatabaseType()
getDatabaseType in class SqlProcessorImplprotected String appendIncrease()
appendIncrease in class SqlProcessorImplpublic boolean checkTableExist(Table table, String catalog, DatabaseMetaData metadata)
protected String getQueryForeignSql(Table table, String schema)
getQueryForeignSql in class SqlProcessorImplprotected String createAlterTypeSql(String tableName, String fieldName, String tableDataType)
createAlterTypeSql in class SqlProcessorImplprotected boolean checkTypeSame(String dbColumnType, String tableDataType, String dbDataType)
SqlProcessorImplcheckTypeSame in class SqlProcessorImplprotected String getIndexName(Index index, Table table)
getIndexName in class SqlProcessorImplprotected void appendFooterComment(Table table, List<String> list)
appendFooterComment in class SqlProcessorImpltable - list - protected void getChangedFooterComment(Connection connection, Table table, List<String> list) throws SQLException
getChangedFooterComment in class SqlProcessorImplconnection - table - list - SQLExceptionprotected String delimiter(String name)
delimiter in class SqlProcessorImplprotected void appendTableSpace(StringBuffer ddlBuffer, Table table)
SqlProcessorImplappendTableSpace in class SqlProcessorImplprotected void char2DbLen(List<String> businessTypeList, BusinessType businessType, String databaseType)
char2DbLen in class SqlProcessorImplCopyright © 2006–2018 TinyGroup. All rights reserved.