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(Connection connection) |
static com.liferay.portal.kernel.version.Version |
getLatestSchemaVersion() |
protected Set<com.liferay.portal.kernel.version.Version> |
getPendingSchemaVersions(com.liferay.portal.kernel.version.Version fromSchemaVersion) |
static 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(Connection connection) |
static boolean |
isInRequiredSchemaVersion(Connection connection) |
static boolean |
supportsRetry(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, upgrade
addIndexes, alterColumnName, alterColumnType, alterTableAddColumn, alterTableDropColumn, alterTableName, doHasTable, dropIndexes, dropTable, getConnection, getPrimaryKeyColumnNames, hasColumn, hasColumnType, hasIndex, hasRows, hasRows, hasTable, process, processConcurrently, processConcurrently, removePrimaryKey, runSQL, runSQL, runSQL, runSQL, runSQLTemplate, runSQLTemplate, runSQLTemplateString
public static com.liferay.portal.kernel.version.Version getCurrentSchemaVersion(Connection connection) throws SQLException
SQLException
public static com.liferay.portal.kernel.version.Version getLatestSchemaVersion()
public static 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(Connection connection) throws SQLException
SQLException
public static boolean isInRequiredSchemaVersion(Connection connection) throws SQLException
SQLException
public static boolean supportsRetry(Connection connection) throws SQLException
SQLException
public void upgrade() throws com.liferay.portal.kernel.upgrade.UpgradeException
upgrade
in class com.liferay.portal.kernel.upgrade.UpgradeProcess
com.liferay.portal.kernel.upgrade.UpgradeException
protected void doUpgrade() throws Exception
doUpgrade
in class com.liferay.portal.kernel.upgrade.UpgradeProcess
Exception
protected 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 SQLException
SQLException