public class PortalUpgradeProcess
extends com.liferay.portal.kernel.upgrade.UpgradeProcess
| Constructor and Description |
|---|
PortalUpgradeProcess() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doUpgrade() |
static com.liferay.portal.kernel.version.Version |
getCurrentSchemaVersion(java.sql.Connection connection) |
static com.liferay.portal.kernel.version.Version |
getLatestSchemaVersion() |
protected java.util.Set<com.liferay.portal.kernel.version.Version> |
getPendingSchemaVersions(com.liferay.portal.kernel.version.Version fromSchemaVersion) |
static java.util.SortedMap<com.liferay.portal.kernel.version.Version,com.liferay.portal.kernel.upgrade.UpgradeProcess> |
getPendingUpgradeProcesses(com.liferay.portal.kernel.version.Version schemaVersion) |
static com.liferay.portal.kernel.version.Version |
getRequiredSchemaVersion() |
static boolean |
isInLatestSchemaVersion(java.sql.Connection connection) |
static boolean |
isInRequiredSchemaVersion(java.sql.Connection connection) |
static boolean |
supportsRetry(java.sql.Connection connection) |
protected void |
updateSchemaVersion(com.liferay.portal.kernel.version.Version newSchemaVersion) |
void |
upgrade() |
addTemporaryIndex, clearIndexesCache, ensureTableExists, getIndexesSQL, getPostUpgradeSteps, getPreUpgradeSteps, getTableColumnsMap, getTableName, getThreshold, getUpgradeSteps, increment, increment, increment, isPortal62TableName, isSkipUpgradeProcess, upgrade, upgradeaddIndexes, alterColumnName, alterColumnType, alterTableAddColumn, alterTableDropColumn, alterTableName, doHasTable, dropIndexes, dropTable, getConnection, getPrimaryKeyColumnNames, hasColumn, hasColumnType, hasIndex, hasRows, hasRows, hasTable, process, processConcurrently, processConcurrently, processConcurrently, removePrimaryKey, runSQL, runSQL, runSQL, runSQL, runSQLTemplate, runSQLTemplate, runSQLTemplateStringpublic static com.liferay.portal.kernel.version.Version getCurrentSchemaVersion(java.sql.Connection connection)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static com.liferay.portal.kernel.version.Version getLatestSchemaVersion()
public static java.util.SortedMap<com.liferay.portal.kernel.version.Version,com.liferay.portal.kernel.upgrade.UpgradeProcess> getPendingUpgradeProcesses(com.liferay.portal.kernel.version.Version schemaVersion)
public static com.liferay.portal.kernel.version.Version getRequiredSchemaVersion()
public static boolean isInLatestSchemaVersion(java.sql.Connection connection)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static boolean isInRequiredSchemaVersion(java.sql.Connection connection)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static boolean supportsRetry(java.sql.Connection connection)
throws java.sql.SQLException
java.sql.SQLExceptionpublic void upgrade()
throws com.liferay.portal.kernel.upgrade.UpgradeException
upgrade in class com.liferay.portal.kernel.upgrade.UpgradeProcesscom.liferay.portal.kernel.upgrade.UpgradeExceptionprotected void doUpgrade()
throws java.lang.Exception
doUpgrade in class com.liferay.portal.kernel.upgrade.UpgradeProcessjava.lang.Exceptionprotected java.util.Set<com.liferay.portal.kernel.version.Version> getPendingSchemaVersions(com.liferay.portal.kernel.version.Version fromSchemaVersion)
protected void updateSchemaVersion(com.liferay.portal.kernel.version.Version newSchemaVersion)
throws java.sql.SQLException
java.sql.SQLException