public abstract class AbstractUpgradeTask extends Object implements UpgradeTask, com.atlassian.upgrade.spi.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) |
Integer |
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.jdbc.DatabaseUtil |
getDatabaseUtil() |
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() |
void |
runUpgrade(com.atlassian.upgrade.api.UpgradeContext upgradeContext) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdoUpgrade, getBuildNumber, getScheduleOption, getShortDescription, isDowngradeTaskRequiredprotected static OfBizDelegator getOfBizDelegator()
protected static EntityEngine getEntityEngine()
public void runUpgrade(com.atlassian.upgrade.api.UpgradeContext upgradeContext)
runUpgrade in interface com.atlassian.upgrade.spi.UpgradeTask@Nullable public Integer dependsUpon()
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()
UpgradeTaskprotected I18nHelper getI18nBean()
protected org.ofbiz.core.entity.jdbc.DatabaseUtil getDatabaseUtil()
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-2024 Atlassian. All Rights Reserved.