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, UpgradeTask90702DropCompositeIndexOnDeploymentResult

public abstract class AbstractBootstrapUpgradeTask extends AbstractUpgradeTask implements BootstrapUpgradeTask
  • Field Details

    • bootstrapManager

      @Inject protected BootstrapManager bootstrapManager
    • hibernateConfig

      @Inject protected com.atlassian.config.db.HibernateConfig hibernateConfig
  • Constructor Details

    • AbstractBootstrapUpgradeTask

      protected AbstractBootstrapUpgradeTask(@NotNull @NotNull String shortDescription)
    • AbstractBootstrapUpgradeTask

      @Deprecated protected AbstractBootstrapUpgradeTask(@NotNull @NotNull String buildNumber, @NotNull @NotNull String shortDescription)
      Deprecated.
      since 5.13 - use AbstractBootstrapUpgradeTask(String) instead.
  • Method Details

    • 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)