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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
     
    protected void
     
    static Date
     
    static int
     
    static com.liferay.portal.kernel.version.Version
     
    static int
     
    static String
     
    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
     
    static boolean
     
    static boolean
     
    static boolean
     
    static void
     
    static void
    updateSchemaVersion(Connection connection, com.liferay.portal.kernel.version.Version newSchemaVersion)
     
    static void
    updateState(Connection connection, int state)
     
    void
     

    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, closeConnections, doHasTable, dropIndexes, 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

      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)