public class CustomSqlInstallProcessor extends AbstractInstallProcessor
logger
DATABASE_INSTALL_PROCESSOR, INITDATA_INSTALL_PROCESSOR, PROCEDURE_INSTALL_PROCESSOR, SEQUENCE_INSTALL_PROCESSOR, TABLE_INSTALL_PROCESSOR, TRIGGER_INSTALL_PROCESSOR, VIEW_INSTALL_PROCESSOR
DEFAULT_PRECEDENCE, HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
CustomSqlInstallProcessor() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getPostProcessSqls(boolean isFull,
String language,
Connection connection)
获取后置sql
|
List<String> |
getPreProcessSqls(boolean isFull,
String language,
Connection connection)
获取前置处理sql
|
void |
setCustomSqlProcessor(CustomSqlProcessor customSqlProcessor) |
getOrder, getProcessSqls
public void setCustomSqlProcessor(CustomSqlProcessor customSqlProcessor)
public List<String> getPreProcessSqls(boolean isFull, String language, Connection connection) throws SQLException
InstallProcessor
getPreProcessSqls
in interface InstallProcessor
getPreProcessSqls
in class AbstractInstallProcessor
isFull
- 是否增量language
- 数据库语言connection
- 连接对象SQLException
public List<String> getPostProcessSqls(boolean isFull, String language, Connection connection) throws SQLException
InstallProcessor
getPostProcessSqls
in interface InstallProcessor
getPostProcessSqls
in class AbstractInstallProcessor
connection
- 连接对象SQLException
Copyright © 2006–2018 TinyGroup. All rights reserved.