public class SybaseSqlProcessorImpl extends SqlProcessorImpl
COLUMN_DEF, COLUMN_NAME, COLUMN_SIZE, DATA_TYPE, DECIMAL_DIGITS, INDEX_NON_UNIQUE, NULLABLE, REMARKS, TYPE_NAME
Constructor and Description |
---|
SybaseSqlProcessorImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
appendColumnUpdate(List<String> existUpdateList,
TableField field,
StandardField standardField,
ColumnContext columnContext)
列字段是否发生改变
|
protected void |
appendComment(String comment,
StringBuffer ddlBuffer,
List<String> list) |
protected void |
appendFooterComment(Table table,
List<String> list)
在footer增加comment
mysql 实现为空
|
protected String |
appendIncrease() |
protected void |
appendTableSpace(StringBuffer ddlBuffer,
Table table)
表空间默认实现
|
protected void |
appendTypeAndDefault(StringBuffer ddlBuffer,
TableField field,
StandardField standardField)
与其他数据库顺序不一样,identity必须在not null之前
|
protected boolean |
checkTypeSame(String dbColumnType,
String tableDataType,
String dbDataType)
检查数据类型是否相同
|
protected String |
createAlterTypeSql(String tableName,
String fieldName,
String tableDataType) |
protected void |
dealNotNullSql(StringBuffer alterTypeBuffer,
TableField field,
boolean dbNullAble) |
protected String |
delimiter(String name) |
protected void |
getChangedFooterComment(Connection connection,
Table table,
List<String> list)
footer检查comment变化
|
protected String |
getDatabaseType() |
protected ResultSet |
getDbForeignRsSql(Connection connection,
Table table) |
protected String |
getDropIndexBaseSql(String dropIndexName,
String nameWithOutSchema) |
protected String |
getIndexName(Index index,
Table table) |
static TableSqlProcessor |
getTableSqlProcessor() |
appendBody, appendDefaultValue, appendField, appendFooter, appendIndexReverse, appendPrimarySql, char2DbLen, checkCommentSame, checkDefSame, checkIndexBaseSame, checkTableColumn, checkTableExist, checkUniqueSame, dealAddFields, dealConstraintIndex, dealDateType, dealDefaultValueUpdate, dealDropFields, dealExistFields, dealTableName, defaultChangedFooterComment, getClearTableSql, getColumns, getComment, getCreateSql, getDbColumnColumnDef, getDbColumnRemarks, getDbColumnType, getDbForeignList, getDbIndexColumns, getDefaultValue, getDropForeignSql, getDropSql, getFieldStdFieldName, getForeignKeySqls, getForeignKeySqls, getForeignUpdate, getIndexCreateSql, getIndexUpdate, 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 appendIncrease()
appendIncrease
in class SqlProcessorImpl
protected String createAlterTypeSql(String tableName, String fieldName, String tableDataType)
createAlterTypeSql
in class SqlProcessorImpl
protected String getIndexName(Index index, Table table)
getIndexName
in class SqlProcessorImpl
protected void appendFooterComment(Table table, List<String> list)
appendFooterComment
in class SqlProcessorImpl
table
- list
- protected void getChangedFooterComment(Connection connection, Table table, List<String> list) throws SQLException
getChangedFooterComment
in class SqlProcessorImpl
connection
- table
- list
- SQLException
protected String delimiter(String name)
delimiter
in class SqlProcessorImpl
protected void appendTableSpace(StringBuffer ddlBuffer, Table table)
SqlProcessorImpl
appendTableSpace
in class SqlProcessorImpl
protected void appendComment(String comment, StringBuffer ddlBuffer, List<String> list)
appendComment
in class SqlProcessorImpl
protected void appendTypeAndDefault(StringBuffer ddlBuffer, TableField field, StandardField standardField)
appendTypeAndDefault
in class SqlProcessorImpl
ddlBuffer
- field
- standardField
- protected void appendColumnUpdate(List<String> existUpdateList, TableField field, StandardField standardField, ColumnContext columnContext)
SqlProcessorImpl
appendColumnUpdate
in class SqlProcessorImpl
existUpdateList
- field
- standardField
- columnContext
- protected void dealNotNullSql(StringBuffer alterTypeBuffer, TableField field, boolean dbNullAble)
dealNotNullSql
in class SqlProcessorImpl
protected boolean checkTypeSame(String dbColumnType, String tableDataType, String dbDataType)
checkTypeSame
in class SqlProcessorImpl
dbColumnType
- tableDataType
- protected String getDropIndexBaseSql(String dropIndexName, String nameWithOutSchema)
getDropIndexBaseSql
in class SqlProcessorImpl
dropIndexName
- nameWithOutSchema
- protected ResultSet getDbForeignRsSql(Connection connection, Table table) throws SQLException
connection
- table
- SQLException
Copyright © 2006–2018 TinyGroup. All rights reserved.