public class PortalUpgradeProcess
extends com.liferay.portal.kernel.upgrade.UpgradeProcess
| Constructor and Description |
|---|
PortalUpgradeProcess() |
| Modifier and Type | Method and Description |
|---|---|
static void |
createPortalRelease(java.sql.Connection connection) |
protected void |
doUpgrade() |
static java.util.Date |
getCurrentBuildDate(java.sql.Connection connection) |
static int |
getCurrentBuildNumber(java.sql.Connection connection) |
static com.liferay.portal.kernel.version.Version |
getCurrentSchemaVersion(java.sql.Connection connection) |
static int |
getCurrentState(java.sql.Connection connection) |
static java.lang.String |
getCurrentTestString(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 |
hasPortalRelease(java.sql.Connection connection) |
static boolean |
isInLatestSchemaVersion(java.sql.Connection connection) |
static boolean |
isInRequiredSchemaVersion(java.sql.Connection connection) |
static boolean |
supportsRetry(java.sql.Connection connection) |
static void |
updateBuildInfo(java.sql.Connection connection) |
static void |
updateSchemaVersion(java.sql.Connection connection,
com.liferay.portal.kernel.version.Version newSchemaVersion) |
static void |
updateState(java.sql.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, process, processConcurrently, processConcurrently, processConcurrently, processConcurrently, removePrimaryKey, runSQL, runSQL, runSQL, runSQL, runSQLTemplate, runSQLTemplate, runSQLTemplateStringpublic static void createPortalRelease(java.sql.Connection connection)
throws java.lang.Exception
java.lang.Exceptionpublic static java.util.Date getCurrentBuildDate(java.sql.Connection connection)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static int getCurrentBuildNumber(java.sql.Connection connection)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static com.liferay.portal.kernel.version.Version getCurrentSchemaVersion(java.sql.Connection connection)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static int getCurrentState(java.sql.Connection connection)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static java.lang.String getCurrentTestString(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 hasPortalRelease(java.sql.Connection connection)
throws java.sql.SQLException
java.sql.SQLExceptionpublic 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 static void updateBuildInfo(java.sql.Connection connection)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static void updateSchemaVersion(java.sql.Connection connection,
com.liferay.portal.kernel.version.Version newSchemaVersion)
throws java.sql.SQLException
java.sql.SQLExceptionpublic static void updateState(java.sql.Connection connection,
int state)
throws java.sql.SQLException
java.sql.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 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)