public class DB2DDLOperations extends GeneralDDLOperations implements DDLOperations
conn| 构造器和说明 |
|---|
DB2DDLOperations() |
DB2DDLOperations(Connection conn) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
makeCreateSequenceSql(String sequenceName)
创建序列
用表来模拟sequence
create table simulate_sequence (seqname varchar(100) not null primary key,
currvalue integer, increment integer);
|
String |
makeModifyColumnSql(String tableCode,
TableField column)
修改列定义 ,比如 修改 varchar 的长度
|
addColumn, appendColumnSQL, appendColumnsSQL, appendPkColumnSql, appendPkSql, checkLabelName, checkTableWellDefined, createSequence, createTable, dropColumn, dropTable, makeAddColumnSql, makeCreateTableSql, makeDropColumnSql, makeDropTableSql, makeReconfigurationColumnSqls, makeRenameColumnSql, modifyColumn, reconfigurationColumn, renameColumn, setConnectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddColumn, createSequence, createTable, dropColumn, dropTable, makeAddColumnSql, makeCreateTableSql, makeDropColumnSql, makeDropTableSql, makeReconfigurationColumnSqls, makeRenameColumnSql, modifyColumn, reconfigurationColumn, renameColumnpublic DB2DDLOperations()
public DB2DDLOperations(Connection conn)
public String makeCreateSequenceSql(String sequenceName)
GeneralDDLOperationsmakeCreateSequenceSql 在接口中 DDLOperationsmakeCreateSequenceSql 在类中 GeneralDDLOperationssequenceName - 序列public String makeModifyColumnSql(String tableCode, TableField column)
DDLOperationsmakeModifyColumnSql 在接口中 DDLOperationsmakeModifyColumnSql 在类中 GeneralDDLOperationstableCode - 表代码column - 字段Copyright © 2017. All rights reserved.