public class H2SqlProcessorImpl extends SqlProcessorImpl
COLUMN_DEF, COLUMN_NAME, COLUMN_SIZE, DATA_TYPE, DECIMAL_DIGITS, INDEX_NON_UNIQUE, NULLABLE, REMARKS, TYPE_NAME
Constructor and Description |
---|
H2SqlProcessorImpl() |
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 String |
appendIncrease()
支持identity和auto_increment
这里选用auto_increment
|
protected boolean |
checkCommentSame(String standardComment,
String remarks)
检查comment是否改变
h2数据直接返回true(因为comment方式不一样,在footer上)
|
boolean |
checkTableExist(Table table,
Connection connection) |
protected String |
createAlterTypeSql(String tableName,
String fieldName,
String tableDataType) |
protected String |
getDatabaseType() |
protected void |
getForeignUpdate(Table table,
String packageName,
Connection connection,
List<String> list)
更新外键
|
protected void |
getIndexUpdate(Connection connection,
Table table,
List<String> list) |
static TableSqlProcessor |
getTableSqlProcessor() |
appendBody, appendColumnUpdate, appendDefaultValue, appendField, appendFooterComment, appendIndexReverse, appendPrimarySql, appendTableSpace, appendTypeAndDefault, char2DbLen, checkDefSame, checkIndexBaseSame, checkTableColumn, checkTypeSame, checkUniqueSame, dealAddFields, dealConstraintIndex, dealDateType, dealDefaultValueUpdate, dealDropFields, dealExistFields, dealNotNullSql, dealTableName, defaultChangedFooterComment, delimiter, getChangedFooterComment, getClearTableSql, getColumns, getComment, getCreateSql, getDbColumnColumnDef, getDbColumnRemarks, getDbColumnType, getDbForeignList, getDbIndexColumns, getDefaultValue, getDropForeignSql, getDropIndexBaseSql, getDropSql, getFieldStdFieldName, getForeignKeySqls, getForeignKeySqls, getIndexCreateSql, getIndexName, getKeysBuffer, getOneFkSql, getOtherUpdate, getQueryForeignSql, getQuerySchemaName, getSchema, getSchema, getSeqTriggerSql, getSeqTriggerUpdate, getTableColumnUpdate, getTableCreateSql, getTableName, getTableProcessor, getUpdateSql, initChar2Byte, notNeedDropIndex, setTableProcessor
public static TableSqlProcessor getTableSqlProcessor()
protected String getDatabaseType()
getDatabaseType
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 String appendIncrease()
appendIncrease
in class SqlProcessorImpl
protected void appendFooter(StringBuffer ddlBuffer, Table table, List<String> list)
appendFooter
in class SqlProcessorImpl
ddlBuffer
- table
- list
- public boolean checkTableExist(Table table, Connection connection) throws SQLException
checkTableExist
in interface TableSqlProcessor
checkTableExist
in class SqlProcessorImpl
SQLException
protected boolean checkCommentSame(String standardComment, String remarks)
checkCommentSame
in class SqlProcessorImpl
standardComment
- remarks
- protected void getForeignUpdate(Table table, String packageName, Connection connection, List<String> list) throws SQLException
SqlProcessorImpl
getForeignUpdate
in class SqlProcessorImpl
SQLException
protected void getIndexUpdate(Connection connection, Table table, List<String> list) throws SQLException
getIndexUpdate
in class SqlProcessorImpl
SQLException
Copyright © 2006–2018 TinyGroup. All rights reserved.