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, setTableProcessor
protected String currentDbSchema
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)
protected boolean checkCommentSame(String standardComment, String remarks)
checkCommentSame
in class SqlProcessorImpl
standardComment
- remarks
- protected String getSchema(String schema, Connection connection) throws SQLException
getSchema
in class SqlProcessorImpl
SQLException
protected void getChangedFooterComment(Connection connection, Table table, List<String> list) throws SQLException
getChangedFooterComment
in class SqlProcessorImpl
SQLException
protected String getDropForeignSql(String dropConstraint, Table table)
getDropForeignSql
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 appendIndexReverse(StringBuffer ddlBuffer, Index index)
appendIndexReverse
in class SqlProcessorImpl
protected void appendFooterComment(Table table, List<String> list)
appendFooterComment
in class SqlProcessorImpl
table
- list
- protected void appendComment(String comment, StringBuffer ddlBuffer, List<String> list)
appendComment
in class SqlProcessorImpl
protected void appendPrimarySql(StringBuffer ddlBuffer, Table table, List<String> list)
appendPrimarySql
in class SqlProcessorImpl
protected String getOneFkSql(Table table, Table foreignTable, ForeignReference foreignReference)
getOneFkSql
in class SqlProcessorImpl
protected String getDropIndexBaseSql(String dropIndexName, String nameWithOutSchema)
getDropIndexBaseSql
in class SqlProcessorImpl
protected boolean notNeedDropIndex(List<Index> preAddIndexes, Table table, String dbIndexName, Map<String,Map<String,String>> dbIndexMaps, Connection connection)
notNeedDropIndex
in class SqlProcessorImpl
table
- dbIndexName
- dbIndexMaps
- protected void dealConstraintIndex(Table table, List<String> preDropIndexes, Map<String,Map<String,String>> dbIndexes)
dealConstraintIndex
in class SqlProcessorImpl
table
- preDropIndexes
- protected List<String> dealDropFields(List<String> dropFields, Table table)
dealDropFields
in class SqlProcessorImpl
dropFields
- table
- protected void appendTableSpace(StringBuffer ddlBuffer, Table table)
SqlProcessorImpl
appendTableSpace
in class SqlProcessorImpl
ddlBuffer
- table
- Copyright © 2006–2018 TinyGroup. All rights reserved.