public class SqlserverSqlProcessorImpl extends SqlProcessorImpl
COLUMN_DEF, COLUMN_NAME, COLUMN_SIZE, DATA_TYPE, DECIMAL_DIGITS, INDEX_NON_UNIQUE, NULLABLE, REMARKS, TYPE_NAME| Constructor and Description |
|---|
SqlserverSqlProcessorImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendComment(String comment,
StringBuffer ddlBuffer,
List<String> list) |
protected void |
appendFooter(StringBuffer ddlBuffer,
Table table,
List<String> list) |
protected void |
appendFooterComment(Table table,
List<String> list)
在footer增加comment
|
protected String |
appendIncrease() |
protected boolean |
checkCommentSame(String standardComment,
String remarks)
检查comment是否改变
|
protected boolean |
checkDefSame(String standardDefault,
String columnDef) |
protected boolean |
checkTypeSame(String dbColumnType,
String tableDataType,
String dbDataType)
检查数据类型是否相同
|
protected String |
createAlterTypeSql(String tableName,
String fieldName,
String tableDataType) |
protected void |
getChangedFooterComment(Connection connection,
Table table,
List<String> list) |
protected String |
getDatabaseType() |
protected String |
getDropIndexBaseSql(String dropIndexName,
String nameWithOutSchema) |
protected String |
getIndexName(Index index,
Table table) |
protected String |
getSchema(String schema,
Connection connection) |
static TableSqlProcessor |
getTableSqlProcessor() |
appendBody, appendColumnUpdate, appendDefaultValue, appendField, appendIndexReverse, appendPrimarySql, appendTableSpace, appendTypeAndDefault, char2DbLen, checkIndexBaseSame, checkTableColumn, checkTableExist, checkUniqueSame, dealAddFields, dealConstraintIndex, dealDateType, dealDefaultValueUpdate, dealDropFields, dealExistFields, dealNotNullSql, dealTableName, defaultChangedFooterComment, delimiter, getClearTableSql, getColumns, getComment, getCreateSql, getDbColumnColumnDef, getDbColumnRemarks, getDbColumnType, getDbForeignList, getDbIndexColumns, getDefaultValue, getDropForeignSql, getDropSql, getFieldStdFieldName, getForeignKeySqls, getForeignKeySqls, getForeignUpdate, getIndexCreateSql, getIndexUpdate, getKeysBuffer, getOneFkSql, getOtherUpdate, getQueryForeignSql, getQuerySchemaName, 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 SqlProcessorImplprotected String createAlterTypeSql(String tableName, String fieldName, String tableDataType)
createAlterTypeSql in class SqlProcessorImplprotected String getIndexName(Index index, Table table)
getIndexName in class SqlProcessorImplprotected void appendComment(String comment, StringBuffer ddlBuffer, List<String> list)
appendComment in class SqlProcessorImplprotected void appendFooter(StringBuffer ddlBuffer, Table table, List<String> list)
appendFooter in class SqlProcessorImplprotected void appendFooterComment(Table table, List<String> list)
appendFooterComment in class SqlProcessorImpltable - list - protected boolean checkDefSame(String standardDefault, String columnDef)
checkDefSame in class SqlProcessorImplprotected boolean checkCommentSame(String standardComment, String remarks)
SqlProcessorImplcheckCommentSame in class SqlProcessorImplprotected void getChangedFooterComment(Connection connection, Table table, List<String> list) throws SQLException
getChangedFooterComment in class SqlProcessorImplSQLExceptionprotected boolean checkTypeSame(String dbColumnType, String tableDataType, String dbDataType)
SqlProcessorImplcheckTypeSame in class SqlProcessorImplprotected String getDropIndexBaseSql(String dropIndexName, String nameWithOutSchema)
getDropIndexBaseSql in class SqlProcessorImplprotected String getSchema(String schema, Connection connection) throws SQLException
getSchema in class SqlProcessorImplSQLExceptionCopyright © 2006–2018 TinyGroup. All rights reserved.