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:
HibernateUpgradeTask, UpgradeTask
Direct Known Subclasses:
AbstractElasticCapabilityUpgradeTask, AbstractPreparedStatementUpgradeTask, AbstractStatementUpgradeTask, UpgradeTask2201PresetSkippedCommits, UpgradeTask2203FillEmptyQueueTime, UpgradeTask2204MigrateArtifactDefinitions, UpgradeTask2205InitArtifactLinksChainFlag, UpgradeTask2207PrepopulateImageDisabledField, UpgradeTask2208FillJobKey, UpgradeTask2410RemoveBashCapabilities, UpgradeTask2506PopulateContinuableColumn, UpgradeTask2511UpgradeJiraServerConfig, UpgradeTask2701SetCommitId, UpgradeTask2710DropUnusedColumnsFromBrs, UpgradeTask2714CreateRelevantChangesetsInfo, UpgradeTask2801InitializeBrsMarkedForDeletion, UpgradeTask2802InitialiseImageConfigurations, UpgradeTask2805DropColumnsFromVcsLocation, UpgradeTask2806ConvertCommitRevisionOnMysql, UpgradeTask2807InitialiseImagePlatform, UpgradeTask2810RemoveJobRepositoryLinks, UpgradeTask2903IntroduceVcsBranchTable, UpgradeTask2904SetFailedChainNotification, UpgradeTask2906DropMergeResultColumns, UpgradeTask3008RemoveMarkedForDeletionJobRepositoryLinks, UpgradeTask3105FixSvnAutoUrlForBranchTagOptions, UpgradeTask3200TrimAuthorNames, UpgradeTask3201CreateShareRepositoryAcls, UpgradeTask3202PruneBranchJobBuildDefinitions, UpgradeTask3204PrepopulateJiraLinkRequiredField, UpgradeTask3205MigrateCustomBitbucketToPlainHg, UpgradeTask3206LinkExistingBranches, UpgradeTask3207SwitchBranchExpiryOff, UpgradeTask3209RemoveSuperflousBranchJobData, UpgradeTask3210IncreaseVariableSizeTo4000, UpgradeTask3211AddNativeGitCapability, UpgradeTask3309RemoveRepositoryDefinitingWorkingDirFromJobBranches, UpgradeTask3608DropObsoleteArtifactLinkColumns, UpgradeTask3612DropObsoleteVersionNamingColumn, UpgradeTask3614SplitPlanResultKeyInArtifactDeploymentVersionItem, UpgradeTask3615SplitPlanResultKeyInArtifact

public abstract class AbstractInHibernateTransactionUpgradeTask
extends AbstractUpgradeTask
implements HibernateUpgradeTask

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
 
Methods inherited from interface com.atlassian.bamboo.upgrade.UpgradeTask
getBuildNumber, getErrors, getShortDescription
 

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.

Specified by:
doUpgrade in interface UpgradeTask
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 © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.