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.
|
protected ApplicationProperties |
getApplicationProperties() |
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, waitdoUpgrade, getBuildNumber, getScheduleOption, getShortDescription, isDowngradeTaskRequiredprotected static OfBizDelegator getOfBizDelegator()
protected static EntityEngine getEntityEngine()
@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-2016 Atlassian. All Rights Reserved.