Class AbstractInHibernateTransactionUpgradeTask

java.lang.Object
com.atlassian.bamboo.upgrade.AbstractUpgradeTask
com.atlassian.bamboo.upgrade.tasks.AbstractInHibernateTransactionUpgradeTask
All Implemented Interfaces:
UpgradeTask
Direct Known Subclasses:
AbstractElasticCapabilityUpgradeTask, AbstractPreparedStatementUpgradeTask, AbstractStatementUpgradeTask

public abstract class AbstractInHibernateTransactionUpgradeTask extends AbstractUpgradeTask
Abstract class for upgrade tasks that need to be wrapped in the Hibernate transaction
  • Constructor Details

    • AbstractInHibernateTransactionUpgradeTask

      @Deprecated protected AbstractInHibernateTransactionUpgradeTask(@NotNull @NotNull String buildNumber, @NotNull @NotNull String shortDescription)
      Deprecated.
    • AbstractInHibernateTransactionUpgradeTask

      public AbstractInHibernateTransactionUpgradeTask(@NotNull @NotNull String shortDescription)
  • Method Details

    • doUpgrade

      public void doUpgrade() throws Exception
      Description copied from interface: UpgradeTask
      Perform the upgrade.
      Throws:
      Exception - to signalize error during upgrade process
    • doUpgrade

      public abstract void doUpgrade(@NotNull @NotNull Connection connection) throws org.hibernate.HibernateException, SQLException
      Throws:
      org.hibernate.HibernateException
      SQLException
    • setBambooConnectionTemplate

      public void setBambooConnectionTemplate(BambooConnectionTemplate bambooConnectionTemplate)