Package com.atlassian.jira.upgrade
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
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.atlassian.jira.upgrade.UpgradeTask
UpgradeTask.ScheduleOption, UpgradeTask.Status -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidaddErrors(String prefix, Collection<String> errors) Useful for adding a bunch of errors (like from a command) with a prefixvoidaddErrors(Collection<String> errors) protected StringconvertToSchemaTableName(String tableName) Return the Upgrade task id of another upgrade task that must be run prior to this task.protected ApplicationPropertiesprotected Connectionprotected org.ofbiz.core.entity.jdbc.dbtype.DatabaseTypeprotected org.ofbiz.core.entity.jdbc.DatabaseUtilprotected org.ofbiz.core.entity.GenericDelegatorDeprecated.protected static EntityEngineReturn any errors that occur.protected I18nHelperprotected static OfBizDelegatorprotected ReindexRequestServiceprotected Stringprotected booleanisMSSQL()protected booleanisMYSQL()protected booleanisORACLE()protected booleanvoidrunUpgrade(com.atlassian.upgrade.api.UpgradeContext upgradeContext) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.jira.upgrade.UpgradeTask
doUpgrade, getBuildNumber, getScheduleOption, getShortDescription, isDowngradeTaskRequiredMethods inherited from interface com.atlassian.upgrade.spi.UpgradeTask
getBuildNumber, getShortDescription
-
Constructor Details
-
AbstractUpgradeTask
public AbstractUpgradeTask()
-
-
Method Details
-
getOfBizDelegator
-
getEntityEngine
-
runUpgrade
public void runUpgrade(com.atlassian.upgrade.api.UpgradeContext upgradeContext) - Specified by:
runUpgradein interfacecom.atlassian.upgrade.spi.UpgradeTask
-
dependsUpon
Description copied from interface:UpgradeTaskReturn the Upgrade task id of another upgrade task that must be run prior to this task.- Specified by:
dependsUponin interfaceUpgradeTask
-
getDelegator
Deprecated. -
getApplicationProperties
-
getReindexRequestService
-
addError
-
addErrors
Useful for adding a bunch of errors (like from a command) with a prefix -
addErrors
-
getErrors
Description copied from interface:UpgradeTaskReturn any errors that occur. Each entry is a string.- Specified by:
getErrorsin interfaceUpgradeTask
-
getI18nBean
-
getDatabaseUtil
protected org.ofbiz.core.entity.jdbc.DatabaseUtil getDatabaseUtil() -
getDatabaseConnection
-
getDatabaseType
protected org.ofbiz.core.entity.jdbc.dbtype.DatabaseType getDatabaseType() -
convertToSchemaTableName
-
getSchemaName
-
isORACLE
- Throws:
SQLException
-
isMSSQL
- Throws:
SQLException
-
isMYSQL
- Throws:
SQLException
-
isPostgreSQL
protected boolean isPostgreSQL()
-