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
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
ModifierConstructorDescriptionAbstractInHibernateTransactionUpgradeTask
(@NotNull String shortDescription) protected
AbstractInHibernateTransactionUpgradeTask
(@NotNull String buildNumber, @NotNull String shortDescription) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 Details
-
AbstractInHibernateTransactionUpgradeTask
@Deprecated protected AbstractInHibernateTransactionUpgradeTask(@NotNull @NotNull String buildNumber, @NotNull @NotNull String shortDescription) Deprecated.since 5.13 - useAbstractInHibernateTransactionUpgradeTask(String)
instead -
AbstractInHibernateTransactionUpgradeTask
-
-
Method Details
-
doUpgrade
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
-
AbstractInHibernateTransactionUpgradeTask(String)
instead