com.atlassian.bamboo.upgrade.tasks
Class UpgradeTask1309DefaultEnabledForElasticSchedule

java.lang.Object
  extended by com.atlassian.bamboo.upgrade.tasks.AbstractPreparedStatementUpgradeTask
      extended by com.atlassian.bamboo.upgrade.tasks.UpgradeTask1309DefaultEnabledForElasticSchedule
All Implemented Interfaces:
UpgradeTask

public class UpgradeTask1309DefaultEnabledForElasticSchedule
extends AbstractPreparedStatementUpgradeTask


Constructor Summary
UpgradeTask1309DefaultEnabledForElasticSchedule()
           
 
Method Summary
 java.lang.String getBuildNumber()
           
protected  java.lang.String getPreparedStatementSql()
          Returns the SQL that will be used to init a PreparedStatement
 java.lang.String getShortDescription()
          A short (<50 chars) description of the upgrade action
protected  boolean isShouldRunUpgrade(java.sql.Statement statement)
          Whether or not the upgrade task should actually run
protected  void prepareStatement(java.sql.PreparedStatement statement)
          Sets the various values in a PreparedStatement
 
Methods inherited from class com.atlassian.bamboo.upgrade.tasks.AbstractPreparedStatementUpgradeTask
doUpgrade, getErrors, setBambooConnectionTemplate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpgradeTask1309DefaultEnabledForElasticSchedule

public UpgradeTask1309DefaultEnabledForElasticSchedule()
Method Detail

getBuildNumber

@NotNull
public java.lang.String getBuildNumber()
Returns:
The build number that this upgrade is applicable to.

getShortDescription

@NotNull
public java.lang.String getShortDescription()
Description copied from interface: UpgradeTask
A short (<50 chars) description of the upgrade action


getPreparedStatementSql

protected java.lang.String getPreparedStatementSql()
Description copied from class: AbstractPreparedStatementUpgradeTask
Returns the SQL that will be used to init a PreparedStatement

Specified by:
getPreparedStatementSql in class AbstractPreparedStatementUpgradeTask
Returns:

prepareStatement

protected void prepareStatement(java.sql.PreparedStatement statement)
                         throws java.sql.SQLException
Description copied from class: AbstractPreparedStatementUpgradeTask
Sets the various values in a PreparedStatement

Specified by:
prepareStatement in class AbstractPreparedStatementUpgradeTask
Throws:
java.sql.SQLException

isShouldRunUpgrade

protected boolean isShouldRunUpgrade(@NotNull
                                     java.sql.Statement statement)
Description copied from class: AbstractPreparedStatementUpgradeTask
Whether or not the upgrade task should actually run

Specified by:
isShouldRunUpgrade in class AbstractPreparedStatementUpgradeTask
Returns:


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.