com.atlassian.bamboo.upgrade.tasks
Class AbstractInHibernateTransactionUpgradeTask

java.lang.Object
  extended by com.atlassian.bamboo.upgrade.AbstractUpgradeTask
      extended by com.atlassian.bamboo.upgrade.tasks.AbstractInHibernateTransactionUpgradeTask
All Implemented Interfaces:
UpgradeTask
Direct Known Subclasses:
AbstractPreparedStatementUpgradeTask, AbstractStatementUpgradeTask, UpgradeTask2201PresetSkippedCommits, UpgradeTask2203FillEmptyQueueTime, UpgradeTask2204MigrateArtifactDefinitions, UpgradeTask2205InitArtifactLinksChainFlag, UpgradeTask2207PrepopulateImageDisabledField, UpgradeTask2208FillJobKey, UpgradeTask2212AddProducerJobResultsToTheArtifactLinks, UpgradeTask2410RemoveBashCapabilities, UpgradeTask2506PopulateContinuableColumn, UpgradeTask2511UpgradeJiraServerConfig, UpgradeTask2516SetSvnAutodetectRootUrl, UpgradeTask2701SetCommitId, UpgradeTask2710DropUnusedColumnsFromBrs, UpgradeTask2714CreateRelevantChangesetsInfo, UpgradeTask2801InitializeBrsMarkedForDeletion, UpgradeTask2802InitialiseImageConfigurations, UpgradeTask2805DropColumnsFromVcsLocation, UpgradeTask2806ConvertCommitRevisionOnMysql, UpgradeTask2807InitialiseImagePlatform, UpgradeTask2810RemoveJobRepositoryLinks, UpgradeTask2903IntroduceVcsBranchTable, UpgradeTask2904SetFailedChainNotification, UpgradeTask2906DropMergeResultColumns

public abstract class AbstractInHibernateTransactionUpgradeTask
extends AbstractUpgradeTask

Abstract class for upgrade tasks that need to be wrapped in the Hibernate transaction


Field Summary
 
Fields inherited from class com.atlassian.bamboo.upgrade.AbstractUpgradeTask
errors
 
Constructor Summary
protected AbstractInHibernateTransactionUpgradeTask(java.lang.String buildNumber, java.lang.String shortDescription)
           
 
Method Summary
 void doUpgrade()
          Perform the upgrade.
abstract  void doUpgrade(java.sql.Connection connection)
           
 void setBambooConnectionTemplate(BambooConnectionTemplate bambooConnectionTemplate)
           
 
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

AbstractInHibernateTransactionUpgradeTask

protected AbstractInHibernateTransactionUpgradeTask(@NotNull
                                                    java.lang.String buildNumber,
                                                    @NotNull
                                                    java.lang.String shortDescription)
Method Detail

doUpgrade

public void doUpgrade()
               throws java.lang.Exception
Description copied from interface: UpgradeTask
Perform the upgrade.

Throws:
java.lang.Exception - to signalize error during upgrade process

doUpgrade

public abstract void doUpgrade(@NotNull
                               java.sql.Connection connection)
                        throws java.sql.SQLException
Throws:
java.sql.SQLException

setBambooConnectionTemplate

public void setBambooConnectionTemplate(BambooConnectionTemplate bambooConnectionTemplate)


Copyright © 2012 Atlassian. All Rights Reserved.