public class DDLOperationsWork extends Object implements com.centit.support.database.ddl.DDLOperations
| 限定符和类型 | 字段和说明 |
|---|---|
protected static org.slf4j.Logger |
logger |
| 构造器和说明 |
|---|
DDLOperationsWork() |
DDLOperationsWork(BaseDaoImpl<?,?> baseDao) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addColumn(String tableCode,
com.centit.support.database.metadata.TableField column) |
void |
createSequence(String sequenceName) |
void |
createTable(com.centit.support.database.metadata.TableInfo tableInfo) |
void |
dropColumn(String tableCode,
String columnCode) |
void |
dropTable(String tableCode) |
com.centit.support.database.ddl.DDLOperations |
getDDLOperations() |
String |
makeAddColumnSql(String tableCode,
com.centit.support.database.metadata.TableField column) |
String |
makeCreateSequenceSql(String sequenceName) |
String |
makeCreateTableSql(com.centit.support.database.metadata.TableInfo tableInfo) |
String |
makeDropColumnSql(String tableCode,
String columnCode) |
String |
makeDropTableSql(String tableCode) |
String |
makeModifyColumnSql(String tableCode,
com.centit.support.database.metadata.TableField oldColumn,
com.centit.support.database.metadata.TableField column) |
List<String> |
makeReconfigurationColumnSqls(String tableCode,
String columnCode,
com.centit.support.database.metadata.TableField column) |
String |
makeRenameColumnSql(String tableCode,
String columnCode,
com.centit.support.database.metadata.TableField column) |
void |
modifyColumn(String tableCode,
com.centit.support.database.metadata.TableField oldColumn,
com.centit.support.database.metadata.TableField column) |
void |
reconfigurationColumn(String tableCode,
String columnCode,
com.centit.support.database.metadata.TableField column) |
void |
renameColumn(String tableCode,
String columnCode,
com.centit.support.database.metadata.TableField column) |
void |
setBaseDao(BaseDaoImpl<?,?> baseDao) |
public DDLOperationsWork()
public DDLOperationsWork(BaseDaoImpl<?,?> baseDao)
public void setBaseDao(BaseDaoImpl<?,?> baseDao)
public com.centit.support.database.ddl.DDLOperations getDDLOperations()
throws SQLException
SQLExceptionpublic void createSequence(String sequenceName) throws SQLException
createSequence 在接口中 com.centit.support.database.ddl.DDLOperationsSQLExceptionpublic void createTable(com.centit.support.database.metadata.TableInfo tableInfo)
throws SQLException
createTable 在接口中 com.centit.support.database.ddl.DDLOperationsSQLExceptionpublic void dropTable(String tableCode) throws SQLException
dropTable 在接口中 com.centit.support.database.ddl.DDLOperationsSQLExceptionpublic void addColumn(String tableCode, com.centit.support.database.metadata.TableField column) throws SQLException
addColumn 在接口中 com.centit.support.database.ddl.DDLOperationsSQLExceptionpublic void modifyColumn(String tableCode, com.centit.support.database.metadata.TableField oldColumn, com.centit.support.database.metadata.TableField column) throws SQLException
modifyColumn 在接口中 com.centit.support.database.ddl.DDLOperationsSQLExceptionpublic void dropColumn(String tableCode, String columnCode) throws SQLException
dropColumn 在接口中 com.centit.support.database.ddl.DDLOperationsSQLExceptionpublic void renameColumn(String tableCode, String columnCode, com.centit.support.database.metadata.TableField column) throws SQLException
renameColumn 在接口中 com.centit.support.database.ddl.DDLOperationsSQLExceptionpublic void reconfigurationColumn(String tableCode, String columnCode, com.centit.support.database.metadata.TableField column) throws SQLException
reconfigurationColumn 在接口中 com.centit.support.database.ddl.DDLOperationsSQLExceptionpublic String makeCreateSequenceSql(String sequenceName)
makeCreateSequenceSql 在接口中 com.centit.support.database.ddl.DDLOperationspublic String makeCreateTableSql(com.centit.support.database.metadata.TableInfo tableInfo)
makeCreateTableSql 在接口中 com.centit.support.database.ddl.DDLOperationspublic String makeDropTableSql(String tableCode)
makeDropTableSql 在接口中 com.centit.support.database.ddl.DDLOperationspublic String makeAddColumnSql(String tableCode, com.centit.support.database.metadata.TableField column)
makeAddColumnSql 在接口中 com.centit.support.database.ddl.DDLOperationspublic String makeModifyColumnSql(String tableCode, com.centit.support.database.metadata.TableField oldColumn, com.centit.support.database.metadata.TableField column)
makeModifyColumnSql 在接口中 com.centit.support.database.ddl.DDLOperationspublic String makeDropColumnSql(String tableCode, String columnCode)
makeDropColumnSql 在接口中 com.centit.support.database.ddl.DDLOperationspublic String makeRenameColumnSql(String tableCode, String columnCode, com.centit.support.database.metadata.TableField column)
makeRenameColumnSql 在接口中 com.centit.support.database.ddl.DDLOperationsCopyright © 2018 江苏南大先腾信息产业股份有限公司. All rights reserved.