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, wait
doUpgrade, getBuildNumber, getScheduleOption, getShortDescription, isDowngradeTaskRequired
protected 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()
UpgradeTask
protected 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
SQLException
protected boolean isMSSQL() throws SQLException
SQLException
protected boolean isMYSQL() throws SQLException
SQLException
protected boolean isPostgreSQL()
Copyright © 2002-2021 Atlassian. All Rights Reserved.