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
  • Constructor Details

    • PortalUpgradeProcess

      public PortalUpgradeProcess()
  • Method Details

    • createPortalRelease

      public static void createPortalRelease(Connection connection) throws Exception
      Throws:
      Exception
    • getCurrentBuildDate

      public static Date getCurrentBuildDate(Connection connection) throws SQLException
      Throws:
      SQLException
    • getCurrentBuildNumber

      public static int getCurrentBuildNumber(Connection connection) throws SQLException
      Throws:
      SQLException
    • getCurrentSchemaVersion

      public static com.liferay.portal.kernel.version.Version getCurrentSchemaVersion(Connection connection) throws SQLException
      Throws:
      SQLException
    • getCurrentState

      public static int getCurrentState(Connection connection) throws SQLException
      Throws:
      SQLException
    • getCurrentTestString

      public static String getCurrentTestString(Connection connection) throws SQLException
      Throws:
      SQLException
    • getLatestSchemaVersion

      public static com.liferay.portal.kernel.version.Version getLatestSchemaVersion()
    • getPendingUpgradeProcesses

      public static SortedMap<com.liferay.portal.kernel.version.Version,List<com.liferay.portal.kernel.upgrade.UpgradeProcess>> getPendingUpgradeProcesses(com.liferay.portal.kernel.version.Version schemaVersion)
    • getRequiredSchemaVersion

      public static com.liferay.portal.kernel.version.Version getRequiredSchemaVersion()
    • hasPortalRelease

      public static boolean hasPortalRelease(Connection connection) throws SQLException
      Throws:
      SQLException
    • isInLatestSchemaVersion

      public static boolean isInLatestSchemaVersion(Connection connection) throws SQLException
      Throws:
      SQLException
    • isInRequiredSchemaVersion

      public static boolean isInRequiredSchemaVersion(Connection connection) throws SQLException
      Throws:
      SQLException
    • supportsRetry

      public static boolean supportsRetry(Connection connection) throws SQLException
      Throws:
      SQLException
    • updateBuildInfo

      public static void updateBuildInfo(Connection connection) throws SQLException
      Throws:
      SQLException
    • updateSchemaVersion

      public static void updateSchemaVersion(Connection connection, com.liferay.portal.kernel.version.Version newSchemaVersion) throws SQLException
      Throws:
      SQLException
    • updateState

      public static void updateState(Connection connection, int state) throws SQLException
      Throws:
      SQLException
    • upgrade

      public void upgrade() throws com.liferay.portal.kernel.upgrade.UpgradeException
      Specified by:
      upgrade in interface com.liferay.portal.kernel.upgrade.UpgradeStep
      Overrides:
      upgrade in class com.liferay.portal.kernel.upgrade.UpgradeProcess
      Throws:
      com.liferay.portal.kernel.upgrade.UpgradeException
    • doUpgrade

      protected void doUpgrade() throws Exception
      Specified by:
      doUpgrade in class com.liferay.portal.kernel.upgrade.UpgradeProcess
      Throws:
      Exception
    • getPendingSchemaVersions

      protected Set<com.liferay.portal.kernel.version.Version> getPendingSchemaVersions(com.liferay.portal.kernel.version.Version fromSchemaVersion)