Package com.atlassian.bamboo.upgrade
Class AbstractBootstrapUpgradeTask
- java.lang.Object
-
- com.atlassian.bamboo.upgrade.AbstractUpgradeTask
-
- com.atlassian.bamboo.upgrade.AbstractBootstrapUpgradeTask
-
- All Implemented Interfaces:
BootstrapUpgradeTask
,UpgradeTask
- Direct Known Subclasses:
AbstractMSSQLConvertColumnUpgradeTask
,AbstractPhase1MoveAdminConfigToDatabaseUpgradeTask
,AbstractPrepareForAddingDeletionCascadesUpgradeTask
,AbstractUpdateHibernateDialectUpgradeTask
,AddFailoverParamsClientBrokerUrlUpgradeTask
,AllMySqlTablesUseInnoDb
,BambooCfgExistsAndCanBeWrittenTo
,BranchKeyStartsWithMastersChainKey
,BuildNumberApplicableForUpgrade
,BuildNumberInSharedHomeMatchesDatabase
,ClearingFelixCache
,DatabaseIsSupported
,FileNameEncodingIsReasonable
,JavaVersionIsSupported
,JdbcDriverAvailableInClasspath
,LockLocalHome
,MailServerJndiLocationIsValid
,MsSqlConfigurationValid
,PlanKeysCorrectlyFormatted
,RequirePersistentDatabase
,ServerKeyIsValid
,TableNamesAreCaseInsensitive
,ThereIsSingleRowInHibernateUniqueKeyTable
,UpgradeTask70302ReorganiseHomeDirectory
,UpgradeTask70303FixEc2ConfigurationAfterHomeReorg
,UpgradeTask80004ConvertOracleLongToClob
,UpgradeTask80302DropNotificationsUniqueIndex
,UpgradeTask90405RemoveTestClassIndices
,UpgradeTask90406DropOidFromArtifactDefinition
,UpgradeTask90408ChangeDefaultJmsKeyStorePassword
,UpgradeTask90409EncryptNewJmsKeyStorePassword
,UpgradeTask90410AddHibernateTimeoutProperties
,UpgradeTask90506SetTestCaseLastRecordedBuildNumber
public abstract class AbstractBootstrapUpgradeTask extends AbstractUpgradeTask implements BootstrapUpgradeTask
-
-
Field Summary
Fields Modifier and Type Field Description protected BootstrapManager
bootstrapManager
protected com.atlassian.config.db.HibernateConfig
hibernateConfig
-
Fields inherited from class com.atlassian.bamboo.upgrade.AbstractUpgradeTask
errors
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractBootstrapUpgradeTask(@NotNull String shortDescription)
protected
AbstractBootstrapUpgradeTask(@NotNull String buildNumber, @NotNull String shortDescription)
Deprecated.since 5.13 - useAbstractBootstrapUpgradeTask(String)
instead.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Connection
getDatabaseConnection()
protected @Nullable org.hibernate.dialect.Dialect
getDialect()
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, getBuildNumber, getErrors, getShortDescription
-
-
-
-
Field Detail
-
bootstrapManager
@Inject protected BootstrapManager bootstrapManager
-
hibernateConfig
@Inject protected com.atlassian.config.db.HibernateConfig hibernateConfig
-
-
Constructor Detail
-
AbstractBootstrapUpgradeTask
protected AbstractBootstrapUpgradeTask(@NotNull @NotNull String shortDescription)
-
AbstractBootstrapUpgradeTask
@Deprecated protected AbstractBootstrapUpgradeTask(@NotNull @NotNull String buildNumber, @NotNull @NotNull String shortDescription)
Deprecated.since 5.13 - useAbstractBootstrapUpgradeTask(String)
instead.
-
-
Method Detail
-
getDatabaseConnection
protected Connection getDatabaseConnection() throws SQLException
- Throws:
SQLException
-
getDialect
@Nullable protected @Nullable org.hibernate.dialect.Dialect getDialect()
-
withDatabaseConnection
protected void withDatabaseConnection(BambooConnectionCallback connectionCallback) throws org.hibernate.HibernateException, SQLException
- Throws:
org.hibernate.HibernateException
SQLException
-
setBootstrapManager
public void setBootstrapManager(BootstrapManager bootstrapManager)
-
setHibernateConfig
public void setHibernateConfig(com.atlassian.config.db.HibernateConfig hibernateConfig)
-
-