Package com.atlassian.bamboo.persistence
Class BambooTransactionHibernateTemplate
java.lang.Object
com.atlassian.bamboo.persistence.BambooTransactionHibernateTemplate
- All Implemented Interfaces:
TransactionAndHibernateTemplate
,org.springframework.transaction.support.TransactionOperations
public class BambooTransactionHibernateTemplate
extends Object
implements TransactionAndHibernateTemplate
Template for running something within a Hibernate transaction
-
Constructor Summary
ConstructorDescriptionBambooTransactionHibernateTemplate
(org.springframework.orm.hibernate5.HibernateTemplate hibernateTemplate, org.springframework.transaction.support.TransactionTemplate transactionTemplate) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.transaction.support.TransactionOperations
executeWithoutResult
-
Constructor Details
-
BambooTransactionHibernateTemplate
public BambooTransactionHibernateTemplate(org.springframework.orm.hibernate5.HibernateTemplate hibernateTemplate, org.springframework.transaction.support.TransactionTemplate transactionTemplate)
-
-
Method Details
-
execute
public <T> T execute(org.springframework.transaction.support.TransactionCallback<T> action) throws org.springframework.transaction.TransactionException - Specified by:
execute
in interfaceorg.springframework.transaction.support.TransactionOperations
- Throws:
org.springframework.transaction.TransactionException
-
execute
public <T> T execute(org.springframework.orm.hibernate5.HibernateCallback<T> hibernateCallback) - Specified by:
execute
in interfaceTransactionAndHibernateTemplate
-
doWork
public void doWork(org.hibernate.jdbc.Work work) throws org.hibernate.HibernateException - Specified by:
doWork
in interfaceTransactionAndHibernateTemplate
- Throws:
org.hibernate.HibernateException
-