com.atlassian.bamboo.upgrade.tasks
Class UpgradeTask1307SetDefaultElasticImageConfiguration

java.lang.Object
  extended by com.atlassian.bamboo.upgrade.AbstractUpgradeTask
      extended by com.atlassian.bamboo.upgrade.tasks.AbstractInHibernateTransactionUpgradeTask
          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


Field Summary
 
Fields inherited from class com.atlassian.bamboo.upgrade.AbstractUpgradeTask
errors
 
Constructor Summary
UpgradeTask1307SetDefaultElasticImageConfiguration()
           
 
Method Summary
protected  java.lang.String getPreparedStatementSql()
          Returns the SQL that will be used to init a PreparedStatement
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
 
Methods inherited from class com.atlassian.bamboo.upgrade.tasks.AbstractInHibernateTransactionUpgradeTask
doUpgrade, setBambooConnectionTemplate
 
Methods inherited from class com.atlassian.bamboo.upgrade.AbstractUpgradeTask
getBuildNumber, getErrors, getShortDescription
 
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

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:

setElasticImageConfigurationAccessor

public void setElasticImageConfigurationAccessor(ElasticImageConfigurationAccessor elasticImageConfigurationAccessor)


Copyright © 2010 Atlassian. All Rights Reserved.