public class InformixSqlProcessorImpl extends SqlProcessorImpl
| Modifier and Type | Field and Description |
|---|---|
protected String |
currentDbSchema |
COLUMN_DEF, COLUMN_NAME, COLUMN_SIZE, DATA_TYPE, DECIMAL_DIGITS, INDEX_NON_UNIQUE, NULLABLE, REMARKS, TYPE_NAME| Constructor and Description |
|---|
InformixSqlProcessorImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendComment(String comment,
StringBuffer ddlBuffer) |
protected void |
appendComment(String comment,
StringBuffer ddlBuffer,
List<String> list) |
protected void |
appendFooterComment(Table table,
List<String> list)
在footer增加comment
实现为空
|
protected void |
appendIndexReverse(StringBuffer ddlBuffer,
Index index) |
protected void |
appendPrimarySql(StringBuffer ddlBuffer,
Table table,
List<String> list) |
protected void |
appendTableSpace(StringBuffer ddlBuffer,
Table table)
表空间默认实现
|
protected boolean |
checkCommentSame(String standardComment,
String remarks)
注释在foot上
不需要在字段中体现变化
|
protected String |
createAlterTypeSql(String tableName,
String fieldName,
String tableDataType) |
protected void |
dealConstraintIndex(Table table,
List<String> preDropIndexes,
Map<String,Map<String,String>> dbIndexes)
删除有关联的索引
informix不做处理
|
protected void |
dealDefaultValueUpdate(StringBuffer alterTypeBuffer,
String fieldDefaultValue,
String columnDef) |
protected List<String> |
dealDropFields(List<String> dropFields,
Table table) |
protected void |
dealNotNullSql(StringBuffer alterTypeBuffer,
TableField field,
boolean dbNullAble) |
protected void |
getChangedFooterComment(Connection connection,
Table table,
List<String> list) |
protected String |
getDatabaseType() |
protected String |
getDropForeignSql(String dropConstraint,
Table table) |
protected String |
getDropIndexBaseSql(String dropIndexName,
String nameWithOutSchema) |
protected String |
getOneFkSql(Table table,
Table foreignTable,
ForeignReference foreignReference) |
protected String |
getSchema(String schema,
Connection connection) |
static TableSqlProcessor |
getTableSqlProcessor() |
protected boolean |
notNeedDropIndex(List<Index> preAddIndexes,
Table table,
String dbIndexName,
Map<String,Map<String,String>> dbIndexMaps,
Connection connection)
informix不会删除索引
因为有系统索引(主键、外键、clob都会有)存在,无法辨别
|
appendBody, appendColumnUpdate, appendDefaultValue, appendField, appendFooter, appendIncrease, appendTypeAndDefault, char2DbLen, checkDefSame, checkIndexBaseSame, checkTableColumn, checkTableExist, checkTypeSame, checkUniqueSame, dealAddFields, dealDateType, dealExistFields, dealTableName, defaultChangedFooterComment, delimiter, getClearTableSql, getColumns, getComment, getCreateSql, getDbColumnColumnDef, getDbColumnRemarks, getDbColumnType, getDbForeignList, getDbIndexColumns, getDefaultValue, getDropSql, getFieldStdFieldName, getForeignKeySqls, getForeignKeySqls, getForeignUpdate, getIndexCreateSql, getIndexName, getIndexUpdate, getKeysBuffer, getOtherUpdate, getQueryForeignSql, getQuerySchemaName, getSchema, getSeqTriggerSql, getSeqTriggerUpdate, getTableColumnUpdate, getTableCreateSql, getTableName, getTableProcessor, getUpdateSql, initChar2Byte, setTableProcessorprotected String currentDbSchema
public 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)
protected boolean checkCommentSame(String standardComment, String remarks)
checkCommentSame in class SqlProcessorImplstandardComment - remarks - protected String getSchema(String schema, Connection connection) throws SQLException
getSchema in class SqlProcessorImplSQLExceptionprotected void getChangedFooterComment(Connection connection, Table table, List<String> list) throws SQLException
getChangedFooterComment in class SqlProcessorImplSQLExceptionprotected String getDropForeignSql(String dropConstraint, Table table)
getDropForeignSql in class SqlProcessorImplprotected void dealDefaultValueUpdate(StringBuffer alterTypeBuffer, String fieldDefaultValue, String columnDef)
dealDefaultValueUpdate in class SqlProcessorImplprotected void dealNotNullSql(StringBuffer alterTypeBuffer, TableField field, boolean dbNullAble)
dealNotNullSql in class SqlProcessorImplprotected void appendIndexReverse(StringBuffer ddlBuffer, Index index)
appendIndexReverse in class SqlProcessorImplprotected void appendFooterComment(Table table, List<String> list)
appendFooterComment in class SqlProcessorImpltable - list - protected void appendComment(String comment, StringBuffer ddlBuffer, List<String> list)
appendComment in class SqlProcessorImplprotected void appendPrimarySql(StringBuffer ddlBuffer, Table table, List<String> list)
appendPrimarySql in class SqlProcessorImplprotected String getOneFkSql(Table table, Table foreignTable, ForeignReference foreignReference)
getOneFkSql in class SqlProcessorImplprotected String getDropIndexBaseSql(String dropIndexName, String nameWithOutSchema)
getDropIndexBaseSql in class SqlProcessorImplprotected boolean notNeedDropIndex(List<Index> preAddIndexes, Table table, String dbIndexName, Map<String,Map<String,String>> dbIndexMaps, Connection connection)
notNeedDropIndex in class SqlProcessorImpltable - dbIndexName - dbIndexMaps - protected void dealConstraintIndex(Table table, List<String> preDropIndexes, Map<String,Map<String,String>> dbIndexes)
dealConstraintIndex in class SqlProcessorImpltable - preDropIndexes - protected List<String> dealDropFields(List<String> dropFields, Table table)
dealDropFields in class SqlProcessorImpldropFields - table - protected void appendTableSpace(StringBuffer ddlBuffer, Table table)
SqlProcessorImplappendTableSpace in class SqlProcessorImplddlBuffer - table - Copyright © 2006–2018 TinyGroup. All rights reserved.