|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.bamboo.upgrade.tasks.AbstractStatementUpgradeTask
public abstract class AbstractStatementUpgradeTask
A base upgrade task for SQL to be run on a series of Statement
Constructor Summary | |
---|---|
AbstractStatementUpgradeTask()
|
Method Summary | |
---|---|
void |
doUpgrade()
Perform the upgrade. |
java.util.Collection<java.lang.String> |
getErrors()
Return any errors that occur. |
protected abstract java.util.List<java.lang.String> |
getSqlStatements()
A list of SQL statements to be run in order. |
protected abstract boolean |
isShouldRunUpgrade(java.sql.Statement statement)
Whether or not the upgrade task should actually run |
void |
setBambooConnectionTemplate(BambooConnectionTemplate bambooConnectionTemplate)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.bamboo.upgrade.UpgradeTask |
---|
getBuildNumber, getShortDescription |
Constructor Detail |
---|
public AbstractStatementUpgradeTask()
Method Detail |
---|
public void doUpgrade() throws java.lang.Exception
UpgradeTask
doUpgrade
in interface UpgradeTask
java.lang.Exception
public java.util.Collection<java.lang.String> getErrors()
UpgradeTask
getErrors
in interface UpgradeTask
protected abstract boolean isShouldRunUpgrade(@NotNull java.sql.Statement statement)
statement
-
protected abstract java.util.List<java.lang.String> getSqlStatements()
public void setBambooConnectionTemplate(BambooConnectionTemplate bambooConnectionTemplate)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |