类 AbstractCmsUpgrader
java.lang.Object
com.publiccms.common.base.AbstractCmsUpgrader
- 直接已知子类:
CmsUpgrader
AbstractCmsUpgrader
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明abstract intprotected voidrunScript(StringWriter stringWriter, Connection connection, String fromVersion, String toVersion) abstract voidsetDataBaseUrl(Properties dbconfig, String host, String port, String database, String timeZone) voidsetPassword(Connection connection, String username, String password) voidsetSiteUrl(Connection connection, String siteurl) abstract voidupdate(StringWriter stringWriter, Connection connection, String fromVersion) protected voidupdateCategoryType(StringWriter stringWriter, Connection connection) protected voidupdateImageConfig(StringWriter stringWriter, Connection connection) protected voidupdateMetadata(StringWriter stringWriter, Connection connection) protected voidupdateSiteConfig(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-- 抛出:
SQLExceptionIOException
-
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-- 抛出:
IOExceptionURISyntaxException
-
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
-