public class PortalUpgradeProcess
extends com.liferay.portal.kernel.upgrade.UpgradeProcess
| Constructor and Description |
|---|
PortalUpgradeProcess() |
| Modifier and Type | Method and Description |
|---|---|
static void |
createPortalRelease(Connection connection) |
protected void |
doUpgrade() |
static Date |
getCurrentBuildDate(Connection connection) |
static int |
getCurrentBuildNumber(Connection connection) |
static com.liferay.portal.kernel.version.Version |
getCurrentSchemaVersion(Connection connection) |
static int |
getCurrentState(Connection connection) |
static String |
getCurrentTestString(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 |
hasPortalRelease(Connection connection) |
static boolean |
isInLatestSchemaVersion(Connection connection) |
static boolean |
isInRequiredSchemaVersion(Connection connection) |
static boolean |
supportsRetry(Connection connection) |
static void |
updateBuildInfo(Connection connection) |
static void |
updateSchemaVersion(Connection connection,
com.liferay.portal.kernel.version.Version newSchemaVersion) |
static void |
updateState(Connection connection,
int state) |
void |
upgrade() |
addTemporaryIndex, clearIndexesCache, ensureTableExists, getIndexesSQL, getPostUpgradeSteps, getPreUpgradeSteps, getTableColumnsMap, getTableName, getThreshold, getUpgradeSteps, increment, increment, increment, isPortal62TableName, isSkipUpgradeProcess, upgradeaddIndexes, alterColumnName, alterColumnType, alterTableAddColumn, alterTableDropColumn, alterTableName, doHasTable, dropIndexes, dropTable, getConnection, getPrimaryKeyColumnNames, hasColumn, hasColumnType, hasIndex, hasRows, hasRows, hasTable, hasView, process, processConcurrently, processConcurrently, processConcurrently, processConcurrently, removePrimaryKey, runSQL, runSQL, runSQL, runSQL, runSQLFile, runSQLFile, runSQLTemplatepublic static void createPortalRelease(Connection connection)
throws Exception
Exceptionpublic static Date getCurrentBuildDate(Connection connection)
throws SQLException
SQLExceptionpublic static int getCurrentBuildNumber(Connection connection)
throws SQLException
SQLExceptionpublic static com.liferay.portal.kernel.version.Version getCurrentSchemaVersion(Connection connection)
throws SQLException
SQLExceptionpublic static int getCurrentState(Connection connection)
throws SQLException
SQLExceptionpublic static String getCurrentTestString(Connection connection)
throws SQLException
SQLExceptionpublic 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 hasPortalRelease(Connection connection)
throws SQLException
SQLExceptionpublic static boolean isInLatestSchemaVersion(Connection connection)
throws SQLException
SQLExceptionpublic static boolean isInRequiredSchemaVersion(Connection connection)
throws SQLException
SQLExceptionpublic static boolean supportsRetry(Connection connection)
throws SQLException
SQLExceptionpublic static void updateBuildInfo(Connection connection)
throws SQLException
SQLExceptionpublic static void updateSchemaVersion(Connection connection,
com.liferay.portal.kernel.version.Version newSchemaVersion)
throws SQLException
SQLExceptionpublic static void updateState(Connection connection,
int state)
throws SQLException
SQLExceptionpublic void upgrade()
throws com.liferay.portal.kernel.upgrade.UpgradeException
upgrade in interface com.liferay.portal.kernel.upgrade.UpgradeStepupgrade in class com.liferay.portal.kernel.upgrade.UpgradeProcesscom.liferay.portal.kernel.upgrade.UpgradeExceptionprotected void doUpgrade()
throws Exception
doUpgrade in class com.liferay.portal.kernel.upgrade.UpgradeProcessExceptionprotected Set<com.liferay.portal.kernel.version.Version> getPendingSchemaVersions(com.liferay.portal.kernel.version.Version fromSchemaVersion)