public abstract class AbstractInstallProcessor extends Object implements InstallProcessor
开发人员: renhui
开发时间: 2013-8-15
Modifier and Type | Field and Description |
---|---|
protected Logger |
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 |
---|
AbstractInstallProcessor() |
Modifier and Type | Method and Description |
---|---|
int |
getOrder()
Return the order value of this object, with a
higher value meaning greater in terms of sorting.
|
List<String> |
getPostProcessSqls(boolean isFull,
String language,
Connection connection)
获取后置sql
|
List<String> |
getPreProcessSqls(boolean isFull,
String language,
Connection connection)
获取前置处理sql
|
List<String> |
getProcessSqls(boolean isFull,
String language,
Connection connection)
获取处理sql
|
protected Logger logger
public int getOrder()
Ordered
Normally starting with 0 or 1, with Ordered.LOWEST_PRECEDENCE
indicating greatest. Same order values will result in arbitrary
positions for the affected objects.
Higher value can be interpreted as lower priority, consequently the first object has highest priority (somewhat analogous to Servlet "load-on-startup" values).
Note that order values below 0 are reserved for framework purposes. Application-specified values should always be 0 or greater, with only framework components (internal or third-party) supposed to use lower values.
getOrder
in interface Ordered
Ordered.LOWEST_PRECEDENCE
public List<String> getPreProcessSqls(boolean isFull, String language, Connection connection) throws SQLException
InstallProcessor
getPreProcessSqls
in interface InstallProcessor
isFull
- 是否增量language
- 数据库语言connection
- 连接对象SQLException
public List<String> getProcessSqls(boolean isFull, String language, Connection connection) throws SQLException
InstallProcessor
getProcessSqls
in interface InstallProcessor
connection
- 连接对象SQLException
public List<String> getPostProcessSqls(boolean isFull, String language, Connection connection) throws SQLException
InstallProcessor
getPostProcessSqls
in interface InstallProcessor
connection
- 连接对象SQLException
Copyright © 2006–2018 TinyGroup. All rights reserved.