public class DatabaseInstallerProcessor extends Object implements ApplicationProcessor
开发人员: renhui
开发时间: 2013-8-15
Modifier and Type | Field and Description |
---|---|
static String |
DATABASE_INSTALLER_BEAN_NAME |
DEFAULT_PRECEDENCE, HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
Constructor and Description |
---|
DatabaseInstallerProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
config(XmlNode applicationConfig,
XmlNode componentConfig)
设置配置信息,应用配置和组件配置内容合并
|
void |
execute(List<String> sqls,
Connection con) |
XmlNode |
getApplicationConfig()
获取应用配置信息
|
String |
getApplicationNodePath()
获取在application.xml中配置对象的相对路径
|
List<String> |
getChangeSqls() |
XmlNode |
getComponentConfig()
获取组件配置信息
|
String |
getComponentConfigPath()
返回该配置对象组件配置的相对路径,相对于classpath的路径。
|
String |
getDbLanguage() |
List<String> |
getDropSqls()
生成删除语句
|
List<String> |
getFullSqls() |
List<InstallProcessor> |
getInstallProcessors() |
String |
getLanguage() |
String |
getNodeName() |
int |
getOrder()
Return the order value of this object, with a
higher value meaning greater in terms of sorting.
|
void |
init()
应用程序处理器初始化方法
|
void |
process() |
void |
process(String language) |
void |
setApplication(Application application)
设置本应用处理器所属的应用程序
|
void |
setDataSource(DataSource dataSource) |
void |
setDbLanguage(String dbLanguage) |
void |
setInstallProcessors(List<InstallProcessor> installProcessors) |
void |
start()
应用程序处理器开启方法
|
void |
stop()
应用程序处理器关闭方法
|
public static final String DATABASE_INSTALLER_BEAN_NAME
public void setDataSource(DataSource dataSource)
public String getDbLanguage()
public void setDbLanguage(String dbLanguage)
public List<InstallProcessor> getInstallProcessors()
public void setInstallProcessors(List<InstallProcessor> installProcessors)
public String getNodeName()
public String getLanguage()
public void process()
public String getApplicationNodePath()
Configuration
getApplicationNodePath
in interface Configuration
public String getComponentConfigPath()
Configuration
getComponentConfigPath
in interface Configuration
public void config(XmlNode applicationConfig, XmlNode componentConfig)
Configuration
config
in interface Configuration
applicationConfig
- 应用配置节点componentConfig
- 组件配置节点public XmlNode getComponentConfig()
Configuration
getComponentConfig
in interface Configuration
public XmlNode getApplicationConfig()
Configuration
getApplicationConfig
in interface Configuration
public void start()
ApplicationProcessor
start
in interface ApplicationProcessor
public void stop()
ApplicationProcessor
stop
in interface ApplicationProcessor
public void setApplication(Application application)
ApplicationProcessor
setApplication
in interface ApplicationProcessor
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 void init()
ApplicationProcessor
init
in interface ApplicationProcessor
public void process(String language)
public void execute(List<String> sqls, Connection con) throws SQLException
SQLException
Copyright © 2006–2018 TinyGroup. All rights reserved.