Package com.liferay.portal.upgrade
Class PortalUpgradeProcess
Object
com.liferay.portal.kernel.dao.db.BaseDBProcess
com.liferay.portal.kernel.upgrade.UpgradeProcess
com.liferay.portal.upgrade.PortalUpgradeProcess
- All Implemented Interfaces:
com.liferay.portal.kernel.dao.db.DBProcess
,com.liferay.portal.kernel.upgrade.UpgradeStep
public class PortalUpgradeProcess
extends com.liferay.portal.kernel.upgrade.UpgradeProcess
- Author:
- Alberto Chaparro
-
Nested Class Summary
Nested classes/interfaces inherited from class com.liferay.portal.kernel.upgrade.UpgradeProcess
com.liferay.portal.kernel.upgrade.UpgradeProcess.Alterable
-
Field Summary
Fields inherited from class com.liferay.portal.kernel.dao.db.BaseDBProcess
connection
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
createPortalRelease
(Connection connection) protected void
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
protected Set<com.liferay.portal.kernel.version.Version>
getPendingSchemaVersions
(com.liferay.portal.kernel.version.Version fromSchemaVersion) static SortedMap<com.liferay.portal.kernel.version.Version,
List<com.liferay.portal.kernel.upgrade.UpgradeProcess>> getPendingUpgradeProcesses
(com.liferay.portal.kernel.version.Version schemaVersion) static com.liferay.portal.kernel.version.Version
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()
Methods inherited from class com.liferay.portal.kernel.upgrade.UpgradeProcess
addTemporaryIndex, clearIndexesCache, ensureTableExists, getIndexesSQL, getPostUpgradeSteps, getPreUpgradeSteps, getTableColumnsMap, getTableName, getThreshold, getUpgradeSteps, increment, increment, increment, isPortal62TableName, isSkipUpgradeProcess, upgrade
Methods inherited from class com.liferay.portal.kernel.dao.db.BaseDBProcess
addIndexes, 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, runSQLTemplate
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.liferay.portal.kernel.dao.db.DBProcess
runSQLTemplate, runSQLTemplateString
-
Constructor Details
-
PortalUpgradeProcess
public PortalUpgradeProcess()
-
-
Method Details
-
createPortalRelease
- Throws:
Exception
-
getCurrentBuildDate
- Throws:
SQLException
-
getCurrentBuildNumber
- Throws:
SQLException
-
getCurrentSchemaVersion
public static com.liferay.portal.kernel.version.Version getCurrentSchemaVersion(Connection connection) throws SQLException - Throws:
SQLException
-
getCurrentState
- Throws:
SQLException
-
getCurrentTestString
- Throws:
SQLException
-
getLatestSchemaVersion
public static com.liferay.portal.kernel.version.Version getLatestSchemaVersion() -
getPendingUpgradeProcesses
-
getRequiredSchemaVersion
public static com.liferay.portal.kernel.version.Version getRequiredSchemaVersion() -
hasPortalRelease
- Throws:
SQLException
-
isInLatestSchemaVersion
- Throws:
SQLException
-
isInRequiredSchemaVersion
- Throws:
SQLException
-
supportsRetry
- Throws:
SQLException
-
updateBuildInfo
- Throws:
SQLException
-
updateSchemaVersion
public static void updateSchemaVersion(Connection connection, com.liferay.portal.kernel.version.Version newSchemaVersion) throws SQLException - Throws:
SQLException
-
updateState
- Throws:
SQLException
-
upgrade
public void upgrade() throws com.liferay.portal.kernel.upgrade.UpgradeException- Specified by:
upgrade
in interfacecom.liferay.portal.kernel.upgrade.UpgradeStep
- Overrides:
upgrade
in classcom.liferay.portal.kernel.upgrade.UpgradeProcess
- Throws:
com.liferay.portal.kernel.upgrade.UpgradeException
-
doUpgrade
- Specified by:
doUpgrade
in classcom.liferay.portal.kernel.upgrade.UpgradeProcess
- Throws:
Exception
-
getPendingSchemaVersions
protected Set<com.liferay.portal.kernel.version.Version> getPendingSchemaVersions(com.liferay.portal.kernel.version.Version fromSchemaVersion)
-