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
-
-
Field Summary
-
Fields inherited from class com.atlassian.bamboo.upgrade.AbstractUpgradeTask
errors
-
-
Constructor Summary
Constructors Modifier Constructor Description AbstractInHibernateTransactionUpgradeTask(@NotNull String shortDescription)
protected
AbstractInHibernateTransactionUpgradeTask(@NotNull String buildNumber, @NotNull String shortDescription)
Deprecated.since 5.13 - useAbstractInHibernateTransactionUpgradeTask(String)
instead
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
doUpgrade()
Perform the upgrade.abstract void
doUpgrade(@NotNull Connection connection)
void
setBambooConnectionTemplate(BambooConnectionTemplate bambooConnectionTemplate)
-
Methods inherited from class com.atlassian.bamboo.upgrade.AbstractUpgradeTask
getBuildNumber, getErrors, getShortDescription
-
-
-
-
Constructor Detail
-
AbstractInHibernateTransactionUpgradeTask
@Deprecated protected AbstractInHibernateTransactionUpgradeTask(@NotNull @NotNull String buildNumber, @NotNull @NotNull String shortDescription)
Deprecated.since 5.13 - useAbstractInHibernateTransactionUpgradeTask(String)
instead
-
AbstractInHibernateTransactionUpgradeTask
public AbstractInHibernateTransactionUpgradeTask(@NotNull @NotNull String shortDescription)
-
-
Method Detail
-
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)
-
-