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 voidcreatePortalRelease(Connection connection) protected voidstatic DategetCurrentBuildDate(Connection connection) static intgetCurrentBuildNumber(Connection connection) static com.liferay.portal.kernel.version.VersiongetCurrentSchemaVersion(Connection connection) static intgetCurrentState(Connection connection) static StringgetCurrentTestString(Connection connection) static com.liferay.portal.kernel.version.Versionprotected 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.Versionstatic booleanhasPortalRelease(Connection connection) static booleanisInLatestSchemaVersion(Connection connection) static booleanisInRequiredSchemaVersion(Connection connection) static booleansupportsRetry(Connection connection) static voidupdateBuildInfo(Connection connection) static voidupdateSchemaVersion(Connection connection, com.liferay.portal.kernel.version.Version newSchemaVersion) static voidupdateState(Connection connection, int state) voidupgrade()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, upgradeMethods 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, runSQLTemplateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
upgradein interfacecom.liferay.portal.kernel.upgrade.UpgradeStep- Overrides:
upgradein classcom.liferay.portal.kernel.upgrade.UpgradeProcess- Throws:
com.liferay.portal.kernel.upgrade.UpgradeException
-
doUpgrade
- Specified by:
doUpgradein 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)
-