public class DerbySqlProcessorImpl extends SqlProcessorImpl
COLUMN_DEF, COLUMN_NAME, COLUMN_SIZE, DATA_TYPE, DECIMAL_DIGITS, INDEX_NON_UNIQUE, NULLABLE, REMARKS, TYPE_NAME
Constructor and Description |
---|
DerbySqlProcessorImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
appendComment(String comment,
StringBuffer ddlBuffer,
List<String> list) |
protected String |
appendIncrease() |
protected boolean |
checkCommentSame(String standardComment,
String remarks)
检查comment是否改变
|
protected String |
createAlterTypeSql(String tableName,
String fieldName,
String tableDataType) |
protected void |
dealDefaultValueUpdate(StringBuffer alterTypeBuffer,
String fieldDefaultValue,
String columnDef) |
protected void |
dealNotNullSql(StringBuffer alterTypeBuffer,
TableField field,
boolean dbNullAble) |
protected void |
getChangedFooterComment(Connection connection,
Table table,
List<String> list)
footer检查comment变化
|
protected String |
getDatabaseType() |
protected String |
getDropIndexBaseSql(String dropIndexName,
String tableName) |
protected String |
getSchema(Table table,
DatabaseMetaData metadata) |
static TableSqlProcessor |
getTableSqlProcessor() |
appendBody, appendColumnUpdate, appendDefaultValue, appendField, appendFooter, appendFooterComment, appendIndexReverse, appendPrimarySql, appendTableSpace, appendTypeAndDefault, char2DbLen, checkDefSame, checkIndexBaseSame, checkTableColumn, checkTableExist, checkTypeSame, checkUniqueSame, dealAddFields, dealConstraintIndex, dealDateType, dealDropFields, dealExistFields, dealTableName, defaultChangedFooterComment, delimiter, getClearTableSql, getColumns, getComment, getCreateSql, getDbColumnColumnDef, getDbColumnRemarks, getDbColumnType, getDbForeignList, getDbIndexColumns, getDefaultValue, getDropForeignSql, getDropSql, getFieldStdFieldName, getForeignKeySqls, getForeignKeySqls, getForeignUpdate, getIndexCreateSql, getIndexName, getIndexUpdate, getKeysBuffer, getOneFkSql, getOtherUpdate, getQueryForeignSql, getQuerySchemaName, getSchema, getSeqTriggerSql, getSeqTriggerUpdate, getTableColumnUpdate, getTableCreateSql, getTableName, getTableProcessor, getUpdateSql, initChar2Byte, notNeedDropIndex, setTableProcessor
public static TableSqlProcessor getTableSqlProcessor()
protected String getDatabaseType()
getDatabaseType
in class SqlProcessorImpl
protected String appendIncrease()
appendIncrease
in class SqlProcessorImpl
protected String createAlterTypeSql(String tableName, String fieldName, String tableDataType)
createAlterTypeSql
in class SqlProcessorImpl
protected void appendComment(String comment, StringBuffer ddlBuffer, List<String> list)
appendComment
in class SqlProcessorImpl
protected void dealDefaultValueUpdate(StringBuffer alterTypeBuffer, String fieldDefaultValue, String columnDef)
dealDefaultValueUpdate
in class SqlProcessorImpl
protected void dealNotNullSql(StringBuffer alterTypeBuffer, TableField field, boolean dbNullAble)
dealNotNullSql
in class SqlProcessorImpl
protected void getChangedFooterComment(Connection connection, Table table, List<String> list) throws SQLException
getChangedFooterComment
in class SqlProcessorImpl
connection
- table
- list
- SQLException
protected boolean checkCommentSame(String standardComment, String remarks)
SqlProcessorImpl
checkCommentSame
in class SqlProcessorImpl
protected String getSchema(Table table, DatabaseMetaData metadata) throws SQLException
getSchema
in class SqlProcessorImpl
SQLException
protected String getDropIndexBaseSql(String dropIndexName, String tableName)
getDropIndexBaseSql
in class SqlProcessorImpl
Copyright © 2006–2018 TinyGroup. All rights reserved.