Class AbstractUpgradeTask

java.lang.Object
com.atlassian.jira.upgrade.AbstractUpgradeTask
All Implemented Interfaces:
UpgradeTask, com.atlassian.upgrade.spi.UpgradeTask
Direct Known Subclasses:
AbstractDelayableUpgradeTask, AbstractImmediateUpgradeTask, NoOpUpgradeTask

public abstract class AbstractUpgradeTask extends Object implements UpgradeTask, com.atlassian.upgrade.spi.UpgradeTask
  • Constructor Details

    • AbstractUpgradeTask

      public AbstractUpgradeTask()
  • Method Details

    • getOfBizDelegator

      protected static OfBizDelegator getOfBizDelegator()
    • getEntityEngine

      protected static EntityEngine getEntityEngine()
    • runUpgrade

      public void runUpgrade(com.atlassian.upgrade.api.UpgradeContext upgradeContext)
      Specified by:
      runUpgrade in interface com.atlassian.upgrade.spi.UpgradeTask
    • dependsUpon

      @Nullable public Integer dependsUpon()
      Description copied from interface: UpgradeTask
      Return the Upgrade task id of another upgrade task that must be run prior to this task.
      Specified by:
      dependsUpon in interface UpgradeTask
    • getDelegator

      @Deprecated protected org.ofbiz.core.entity.GenericDelegator getDelegator()
      Deprecated.
    • getApplicationProperties

      protected ApplicationProperties getApplicationProperties()
    • getReindexRequestService

      protected ReindexRequestService getReindexRequestService()
    • addError

      protected void addError(String error)
    • addErrors

      public void addErrors(String prefix, Collection<String> errors)
      Useful for adding a bunch of errors (like from a command) with a prefix
    • addErrors

      public void addErrors(Collection<String> errors)
    • getErrors

      public Collection<String> getErrors()
      Description copied from interface: UpgradeTask
      Return any errors that occur. Each entry is a string.
      Specified by:
      getErrors in interface UpgradeTask
    • getI18nBean

      protected I18nHelper getI18nBean()
    • getDatabaseUtil

      protected org.ofbiz.core.entity.jdbc.DatabaseUtil getDatabaseUtil()
    • getDatabaseConnection

      protected Connection getDatabaseConnection()
    • getDatabaseType

      protected org.ofbiz.core.entity.jdbc.dbtype.DatabaseType getDatabaseType()
    • convertToSchemaTableName

      protected String convertToSchemaTableName(String tableName)
    • getSchemaName

      protected String getSchemaName()
    • isORACLE

      protected boolean isORACLE() throws SQLException
      Throws:
      SQLException
    • isMSSQL

      protected boolean isMSSQL() throws SQLException
      Throws:
      SQLException
    • isMYSQL

      protected boolean isMYSQL() throws SQLException
      Throws:
      SQLException
    • isPostgreSQL

      protected boolean isPostgreSQL()