类 AbstractCmsUpgrader
java.lang.Object
com.publiccms.common.base.AbstractCmsUpgrader
- 直接已知子类:
CmsUpgrader
AbstractCmsUpgrader
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明abstract int
protected void
runScript
(StringWriter stringWriter, Connection connection, String fromVersion, String toVersion) abstract void
setDataBaseUrl
(Properties dbconfig, String host, String port, String database, String timeZone) void
setPassword
(Connection connection, String username, String password) void
setSiteUrl
(Connection connection, String siteurl) abstract void
update
(StringWriter stringWriter, Connection connection, String fromVersion) protected void
updateCategoryType
(StringWriter stringWriter, Connection connection) protected void
updateImageConfig
(StringWriter stringWriter, Connection connection) protected void
updateMetadata
(StringWriter stringWriter, Connection connection) protected void
updateSiteConfig
(StringWriter stringWriter, Connection connection)
-
字段详细资料
-
version
-
-
构造器详细资料
-
AbstractCmsUpgrader
public AbstractCmsUpgrader()
-
-
方法详细资料
-
update
public abstract void update(StringWriter stringWriter, Connection connection, String fromVersion) throws SQLException, IOException - 参数:
stringWriter
-connection
-fromVersion
-- 抛出:
SQLException
IOException
-
getOldDatabaseConfigVersionList
- 返回:
- old database config version list
-
getVersionList
- 返回:
- version list
-
getDefaultPort
public abstract int getDefaultPort()- 返回:
- default port
-
setDataBaseUrl
public abstract void setDataBaseUrl(Properties dbconfig, String host, String port, String database, String timeZone) throws IOException, URISyntaxException - 参数:
dbconfig
-host
-port
-database
-timeZone
-- 抛出:
IOException
URISyntaxException
-
setPassword
public void setPassword(Connection connection, String username, String password) throws SQLException - 抛出:
SQLException
-
setSiteUrl
- 抛出:
SQLException
-
updateMetadata
-
updateSiteConfig
-
updateImageConfig
-
updateCategoryType
-
runScript
protected void runScript(StringWriter stringWriter, Connection connection, String fromVersion, String toVersion) throws IOException - 抛出:
IOException
-
getVersion
- 返回:
- the version
-