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, setTableProcessorpublic static TableSqlProcessor getTableSqlProcessor()
protected String getDatabaseType()
getDatabaseType in class SqlProcessorImplprotected String createAlterTypeSql(String tableName, String fieldName, String tableDataType)
createAlterTypeSql in class SqlProcessorImplprotected void appendComment(String comment, StringBuffer ddlBuffer, List<String> list)
appendComment in class SqlProcessorImplprotected String appendIncrease()
appendIncrease in class SqlProcessorImplprotected void appendFooter(StringBuffer ddlBuffer, Table table, List<String> list)
appendFooter in class SqlProcessorImplddlBuffer - table - list - public boolean checkTableExist(Table table, Connection connection) throws SQLException
checkTableExist in interface TableSqlProcessorcheckTableExist in class SqlProcessorImplSQLExceptionprotected boolean checkCommentSame(String standardComment, String remarks)
checkCommentSame in class SqlProcessorImplstandardComment - remarks - protected void getForeignUpdate(Table table, String packageName, Connection connection, List<String> list) throws SQLException
SqlProcessorImplgetForeignUpdate in class SqlProcessorImplSQLExceptionprotected void getIndexUpdate(Connection connection, Table table, List<String> list) throws SQLException
getIndexUpdate in class SqlProcessorImplSQLExceptionCopyright © 2006–2018 TinyGroup. All rights reserved.