public abstract class AbstractCmsUpgrader
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
IDENTIFIER_GENERATOR
主键策略
|
static java.lang.String |
IDENTIFIER_GENERATOR_IDENTITY
ID自增主键策略
|
static java.lang.String |
IDENTIFIER_GENERATOR_SEQUENCE
表名_ID_SEQ SEQUENCE主键策略
|
protected java.lang.String |
version |
构造器和说明 |
---|
AbstractCmsUpgrader() |
限定符和类型 | 方法和说明 |
---|---|
abstract int |
getDefaultPort() |
abstract java.util.List<java.lang.String> |
getOldDatabaseConfigVersionList() |
java.lang.String |
getVersion() |
abstract java.util.List<java.lang.String> |
getVersionList() |
protected void |
runScript(java.io.StringWriter stringWriter,
java.sql.Connection connection,
java.lang.String fromVersion,
java.lang.String toVersion) |
abstract void |
setDataBaseUrl(java.util.Properties dbconfig,
java.lang.String host,
java.lang.String port,
java.lang.String database,
java.lang.String timeZone) |
void |
setPassword(java.sql.Connection connection,
java.lang.String username,
java.lang.String password) |
void |
setSiteUrl(java.sql.Connection connection,
java.lang.String siteurl) |
abstract void |
update(java.io.StringWriter stringWriter,
java.sql.Connection connection,
java.lang.String fromVersion) |
protected void |
updateCategoryType(java.io.StringWriter stringWriter,
java.sql.Connection connection) |
protected void |
updateMetadata(java.io.StringWriter stringWriter,
java.sql.Connection connection) |
protected void |
updateSiteConfig(java.io.StringWriter stringWriter,
java.sql.Connection connection) |
public static final java.lang.String IDENTIFIER_GENERATOR_SEQUENCE
public static final java.lang.String IDENTIFIER_GENERATOR_IDENTITY
public static final java.lang.String IDENTIFIER_GENERATOR
protected java.lang.String version
public abstract void update(java.io.StringWriter stringWriter, java.sql.Connection connection, java.lang.String fromVersion) throws java.sql.SQLException, java.io.IOException
stringWriter
- connection
- fromVersion
- java.sql.SQLException
java.io.IOException
public abstract java.util.List<java.lang.String> getOldDatabaseConfigVersionList()
public abstract java.util.List<java.lang.String> getVersionList()
public abstract int getDefaultPort()
public abstract void setDataBaseUrl(java.util.Properties dbconfig, java.lang.String host, java.lang.String port, java.lang.String database, java.lang.String timeZone) throws java.io.IOException, java.net.URISyntaxException
dbconfig
- host
- port
- database
- timeZone
- java.io.IOException
java.net.URISyntaxException
public void setPassword(java.sql.Connection connection, java.lang.String username, java.lang.String password) throws java.sql.SQLException
java.sql.SQLException
public void setSiteUrl(java.sql.Connection connection, java.lang.String siteurl) throws java.sql.SQLException
java.sql.SQLException
protected void updateMetadata(java.io.StringWriter stringWriter, java.sql.Connection connection)
protected void updateSiteConfig(java.io.StringWriter stringWriter, java.sql.Connection connection)
protected void updateCategoryType(java.io.StringWriter stringWriter, java.sql.Connection connection)
protected void runScript(java.io.StringWriter stringWriter, java.sql.Connection connection, java.lang.String fromVersion, java.lang.String toVersion) throws java.io.IOException
java.io.IOException
public java.lang.String getVersion()