public abstract class AbstractUpgradeTask extends Object implements UpgradeTask, BackupSupport, org.springframework.beans.factory.BeanNameAware
log| Constructor and Description |
|---|
AbstractUpgradeTask() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAllErrors(Collection<UpgradeError> errors) |
protected void |
addError(String errorMessage) |
protected void |
addError(UpgradeError error) |
String |
getBuildNumber() |
BuildNumberUpgradeConstraint |
getConstraint() |
Collection<UpgradeError> |
getErrors()
Return any errors that occur.
|
String |
getName()
The human-readable name of the upgrade task
|
String |
getShortDescription()
A short (<50 chars) description of the upgrade action
|
boolean |
isDatabaseUpgrade() |
void |
setBeanName(String name) |
void |
setBuildNumber(String buildNumber) |
void |
validate()
This is only implemented in this abstract base class for the convenience of the large number of older
upgrade tasks.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdoUpgradebreaksBackwardCompatibility, runOnSpaceImportpublic String getShortDescription()
UpgradeTaskInfogetShortDescription in interface UpgradeTaskInfoprotected void addError(UpgradeError error)
protected void addError(String errorMessage)
protected void addAllErrors(Collection<UpgradeError> errors)
public Collection<UpgradeError> getErrors()
UpgradeTaskUpgradeError.getErrors in interface UpgradeTaskUpgradeError objects, sometimes null.public void setBuildNumber(String buildNumber)
public String getBuildNumber()
getBuildNumber in interface UpgradeTaskInfopublic void validate()
throws Exception
This is only implemented in this abstract base class for the convenience of the large number of older upgrade tasks.
If you are implementing a new UpgradeTask you must give some consideration to implementing validation as well.
validate in interface UpgradeTaskExceptionpublic BuildNumberUpgradeConstraint getConstraint()
getConstraint in interface UpgradeTaskpublic void setBeanName(String name)
setBeanName in interface org.springframework.beans.factory.BeanNameAwarepublic String getName()
UpgradeTaskInfogetName in interface UpgradeTaskInfopublic boolean isDatabaseUpgrade()
isDatabaseUpgrade in interface UpgradeTaskInfoCopyright © 2003–2019 Atlassian. All rights reserved.