|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.jira.upgrade.AbstractUpgradeTask
public abstract class AbstractUpgradeTask
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.atlassian.jira.upgrade.UpgradeTask |
|---|
UpgradeTask.Status |
| Constructor Summary | |
|---|---|
protected |
AbstractUpgradeTask(boolean reindexRequired)
|
| Method Summary | |
|---|---|
protected void |
addError(String error)
|
void |
addErrors(Collection<String> errors)
|
void |
addErrors(String prefix,
Collection<String> errors)
Useful for adding a bunch of errors (like from a command) with a prefix |
protected String |
convertToSchemaTableName(String tableName)
|
abstract void |
doUpgrade(boolean setupMode)
Perform the upgrade. |
protected ApplicationProperties |
getApplicationProperties()
|
abstract String |
getBuildNumber()
|
protected Connection |
getDatabaseConnection()
|
protected org.ofbiz.core.entity.GenericDelegator |
getDelegator()
|
Collection<String> |
getErrors()
Return any errors that occur. |
protected I18nHelper |
getI18nBean()
|
String |
getShortDescription()
A short (<50 chars) description of the upgrade action |
boolean |
isReindexRequired()
Is a reindex required as a result of running this task. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractUpgradeTask(boolean reindexRequired)
| Method Detail |
|---|
public boolean isReindexRequired()
UpgradeTask
isReindexRequired in interface UpgradeTaskpublic abstract String getBuildNumber()
getBuildNumber in interface UpgradeTask
public abstract void doUpgrade(boolean setupMode)
throws Exception
UpgradeTask
doUpgrade in interface UpgradeTasksetupMode - Indicating this upgrade task is running during set up.
Exceptionpublic String getShortDescription()
UpgradeTask
getShortDescription in interface UpgradeTaskprotected org.ofbiz.core.entity.GenericDelegator getDelegator()
protected ApplicationProperties getApplicationProperties()
protected void addError(String error)
public void addErrors(String prefix,
Collection<String> errors)
public void addErrors(Collection<String> errors)
public Collection<String> getErrors()
UpgradeTask
getErrors in interface UpgradeTaskprotected I18nHelper getI18nBean()
protected Connection getDatabaseConnection()
protected String convertToSchemaTableName(String tableName)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||