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, hibernateConfig, shortDescription -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractPreparedStatementUpgradeTask(@NotNull String shortDescription) protectedAbstractPreparedStatementUpgradeTask(@NotNull String buildNumber, @NotNull String shortDescription) -
Method Summary
Modifier and TypeMethodDescriptionvoiddoUpgrade(@NotNull Connection connection) protected abstract StringReturns the SQL that will be used to init aPreparedStatementprotected booleanisShouldRunUpgrade(@NotNull Statement statement) Whether or not the upgrade task should actually runprotected abstract voidprepareStatement(PreparedStatement statement) Sets the various values in aPreparedStatementMethods inherited from class com.atlassian.bamboo.upgrade.tasks.AbstractInHibernateTransactionUpgradeTask
doUpgrade, setBambooConnectionTemplateMethods inherited from class com.atlassian.bamboo.upgrade.AbstractUpgradeTask
getBuildNumber, getErrors, getShortDescription
-
Constructor Details
-
AbstractPreparedStatementUpgradeTask
-
AbstractPreparedStatementUpgradeTask
-
-
Method Details
-
doUpgrade
- Specified by:
doUpgradein 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:
-