public abstract class AbstractUpgradeTask extends Object implements UpgradeTask
UpgradeTask.ScheduleOption, UpgradeTask.Status| Constructor and Description |
|---|
AbstractUpgradeTask() |
| Modifier and Type | Method and Description |
|---|---|
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) |
String |
dependsUpon()
Return the Upgrade task id of another upgrade task that must be run prior to this task.
|
abstract void |
doUpgrade(boolean setupMode)
Perform the upgrade.
|
protected ApplicationProperties |
getApplicationProperties() |
abstract String |
getBuildNumber() |
protected Connection |
getDatabaseConnection() |
protected org.ofbiz.core.entity.jdbc.dbtype.DatabaseType |
getDatabaseType() |
protected org.ofbiz.core.entity.GenericDelegator |
getDelegator()
Deprecated.
|
protected static EntityEngine |
getEntityEngine() |
Collection<String> |
getErrors()
Return any errors that occur.
|
protected I18nHelper |
getI18nBean() |
protected static OfBizDelegator |
getOfBizDelegator() |
protected ReindexRequestService |
getReindexRequestService() |
protected String |
getSchemaName() |
protected boolean |
isMSSQL() |
protected boolean |
isMYSQL() |
protected boolean |
isORACLE() |
protected boolean |
isPostgreSQL() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetScheduleOption, getShortDescriptionprotected static OfBizDelegator getOfBizDelegator()
protected static EntityEngine getEntityEngine()
public abstract String getBuildNumber()
getBuildNumber in interface UpgradeTaskpublic abstract void doUpgrade(boolean setupMode)
throws Exception
UpgradeTaskdoUpgrade in interface UpgradeTasksetupMode - Indicating this upgrade task is running during set up.Exception@Nullable public String dependsUpon()
UpgradeTaskdependsUpon in interface UpgradeTask@Deprecated protected org.ofbiz.core.entity.GenericDelegator getDelegator()
protected ApplicationProperties getApplicationProperties()
protected ReindexRequestService getReindexRequestService()
protected void addError(String error)
public void addErrors(String prefix, Collection<String> errors)
public void addErrors(Collection<String> errors)
public Collection<String> getErrors()
UpgradeTaskgetErrors in interface UpgradeTaskprotected I18nHelper getI18nBean()
protected Connection getDatabaseConnection()
protected org.ofbiz.core.entity.jdbc.dbtype.DatabaseType getDatabaseType()
protected String getSchemaName()
protected boolean isORACLE()
throws SQLException
SQLExceptionprotected boolean isMSSQL()
throws SQLException
SQLExceptionprotected boolean isMYSQL()
throws SQLException
SQLExceptionprotected boolean isPostgreSQL()
Copyright © 2002-2015 Atlassian. All Rights Reserved.