Class AbstractPreparedStatementUpgradeTask
java.lang.Object
com.atlassian.bamboo.upgrade.AbstractUpgradeTask
com.atlassian.bamboo.upgrade.tasks.AbstractInHibernateTransactionUpgradeTask
com.atlassian.bamboo.upgrade.tasks.AbstractPreparedStatementUpgradeTask
- All Implemented Interfaces:
UpgradeTask
- Direct Known Subclasses:
UpgradeTask80105SetGlobalToFalseForProjectRepositories
,UpgradeTask90401DeleteOrphanedTestClasses
,UpgradeTask90403AddDefaultPrerequisite
public abstract class AbstractPreparedStatementUpgradeTask
extends AbstractInHibernateTransactionUpgradeTask
A base upgrade task for simple single
PreparedStatement
upgrades-
Field Summary
Fields inherited from class com.atlassian.bamboo.upgrade.AbstractUpgradeTask
errors
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractPreparedStatementUpgradeTask
(@NotNull String shortDescription) protected
AbstractPreparedStatementUpgradeTask
(@NotNull String buildNumber, @NotNull String shortDescription) -
Method Summary
Modifier and TypeMethodDescriptionvoid
doUpgrade
(@NotNull Connection connection) protected abstract String
Returns the SQL that will be used to init aPreparedStatement
protected boolean
isShouldRunUpgrade
(@NotNull Statement statement) Whether or not the upgrade task should actually runprotected abstract void
prepareStatement
(PreparedStatement statement) Sets the various values in aPreparedStatement
Methods inherited from class com.atlassian.bamboo.upgrade.tasks.AbstractInHibernateTransactionUpgradeTask
doUpgrade, setBambooConnectionTemplate
Methods inherited from class com.atlassian.bamboo.upgrade.AbstractUpgradeTask
getBuildNumber, getErrors, getShortDescription
-
Constructor Details
-
AbstractPreparedStatementUpgradeTask
-
AbstractPreparedStatementUpgradeTask
-
-
Method Details
-
doUpgrade
- Specified by:
doUpgrade
in classAbstractInHibernateTransactionUpgradeTask
- Throws:
SQLException
-
getPreparedStatementSql
Returns the SQL that will be used to init aPreparedStatement
- Returns:
-
prepareStatement
Sets the various values in aPreparedStatement
- Parameters:
statement
-- Throws:
SQLException
-
isShouldRunUpgrade
Whether or not the upgrade task should actually run- Parameters:
statement
-- Returns:
-