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, UpgradeTask1821ArtifactLinksInitArtifactSize, UpgradeTask1824PrepopulateTestCountFields, UpgradeTask1831FixNullBuildCompleted, UpgradeTask1832NotificationSetTypes, UpgradeTask1833PrepopulateTestCaseFields, UpgradeTask1834PrepopulationTestAggregate, UpgradeTask2010UpdateFirstLastNextJobBuildNumbers, UpgradeTask2013ResultSummaryMarkedForDeletion, UpgradeTask2014ProjectAndStageMarkedForDeletion, UpgradeTask2018DropMarkedFromDeletionOnResultsSummary, UpgradeTask2021RemoveDataForChainStageTriggerReason, UpgradeTask2023CleanupDuplicateUserCommits, UpgradeTask2026DeleteOrphanedResultSummaries, UpgradeTask2027AfterXFailedNotificationConversion, UpgradeTask2030RemoveJobDependencies, UpgradeTask2031AlterJobDependencyType, UpgradeTask2033MigrateMaven2DependencyConfiguration, UpgradeTask2034RemoveOrphanedBandanaData

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 © 2010 Atlassian. All Rights Reserved.