com.atlassian.bamboo.upgrade
Class AbstractBootstrapUpgradeTask

java.lang.Object
  extended by com.atlassian.bamboo.upgrade.AbstractUpgradeTask
      extended by com.atlassian.bamboo.upgrade.AbstractBootstrapUpgradeTask
All Implemented Interfaces:
UpgradeTask
Direct Known Subclasses:
AddFailoverParamsClientBrokerUrlUpgradeTask, BootstrapUpgradeTask2001UniqueColumnAuthorName, BootstrapUpgradeTask2009DropChainResultTable, BootstrapUpgradeTask2012BindBrokerToAllInterfaces, BootstrapUpgradeTask2016AlterChainStageResultTable, BootstrapUpgradeTask2017DropStageBuildAssociationTable, BootstrapUpgradeTask2019RenameJobDiscriminatorValue, BootstrapUpgradeTask2022CleanupLoginInformationTable, PreBootstrapUpgradeTask706OracleMSSQLFix, ResetBrokerUrlUpgradeTask, UpgradeTask1840IncreaseDbPoolSize

public abstract class AbstractBootstrapUpgradeTask
extends AbstractUpgradeTask


Field Summary
protected  com.atlassian.config.ApplicationConfig applicationConfig
           
protected  BootstrapManager bootstrapManager
           
protected  com.atlassian.config.db.HibernateConfig hibernateConfig
           
 
Fields inherited from class com.atlassian.bamboo.upgrade.AbstractUpgradeTask
errors
 
Constructor Summary
protected AbstractBootstrapUpgradeTask(java.lang.String buildNumber, java.lang.String shortDescription)
           
 
Method Summary
protected  java.sql.Connection getDatabaseConnection()
           
protected  net.sf.hibernate.dialect.Dialect getDialect()
           
 void setApplicationConfig(com.atlassian.config.ApplicationConfig applicationConfig)
           
 void setBootstrapManager(BootstrapManager bootstrapManager)
           
 void setHibernateConfig(com.atlassian.config.db.HibernateConfig hibernateConfig)
           
protected  void withDatabaseConnection(BambooConnectionCallback connectionCallback)
           
 
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
doUpgrade
 

Field Detail

bootstrapManager

protected BootstrapManager bootstrapManager

applicationConfig

protected com.atlassian.config.ApplicationConfig applicationConfig

hibernateConfig

protected com.atlassian.config.db.HibernateConfig hibernateConfig
Constructor Detail

AbstractBootstrapUpgradeTask

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

getDatabaseConnection

protected java.sql.Connection getDatabaseConnection()
                                             throws net.sf.hibernate.HibernateException,
                                                    java.sql.SQLException
Throws:
net.sf.hibernate.HibernateException
java.sql.SQLException

getDialect

@Nullable
protected net.sf.hibernate.dialect.Dialect getDialect()

withDatabaseConnection

protected void withDatabaseConnection(BambooConnectionCallback connectionCallback)
                               throws net.sf.hibernate.HibernateException,
                                      java.sql.SQLException
Throws:
net.sf.hibernate.HibernateException
java.sql.SQLException

setBootstrapManager

public void setBootstrapManager(BootstrapManager bootstrapManager)

setApplicationConfig

public void setApplicationConfig(com.atlassian.config.ApplicationConfig applicationConfig)

setHibernateConfig

public void setHibernateConfig(com.atlassian.config.db.HibernateConfig hibernateConfig)


Copyright © 2010 Atlassian. All Rights Reserved.