com.atlassian.bamboo.upgrade.tasks
Class UpgradeTask1307SetDefaultElasticImageConfiguration

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

public class UpgradeTask1307SetDefaultElasticImageConfiguration
extends AbstractPreparedStatementUpgradeTask


Constructor Summary
UpgradeTask1307SetDefaultElasticImageConfiguration()
           
 
Method Summary
 java.lang.String getBuildNumber()
           
 java.util.Collection<java.lang.String> getErrors()
          Return any errors that occur.
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
 void setElasticImageConfigurationAccessor(ElasticImageConfigurationAccessor elasticImageConfigurationAccessor)
           
 
Methods inherited from class com.atlassian.bamboo.upgrade.tasks.AbstractPreparedStatementUpgradeTask
doUpgrade, setBambooConnectionTemplate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UpgradeTask1307SetDefaultElasticImageConfiguration

public UpgradeTask1307SetDefaultElasticImageConfiguration()
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()
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
Sets the various values in a PreparedStatement

Specified by:
prepareStatement in class AbstractPreparedStatementUpgradeTask
Parameters:
statement -
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:

getErrors

@Nullable
public java.util.Collection<java.lang.String> getErrors()
Description copied from interface: UpgradeTask
Return any errors that occur. Each entry is a string.

Specified by:
getErrors in interface UpgradeTask
Overrides:
getErrors in class AbstractPreparedStatementUpgradeTask

setElasticImageConfigurationAccessor

public void setElasticImageConfigurationAccessor(ElasticImageConfigurationAccessor elasticImageConfigurationAccessor)


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.