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
Constructors Constructor Description BambooTransactionHibernateTemplate(org.springframework.orm.hibernate5.HibernateTemplate hibernateTemplate, org.springframework.transaction.support.TransactionTemplate transactionTemplate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doWork(org.hibernate.jdbc.Work work)
<T> T
execute(org.springframework.orm.hibernate5.HibernateCallback<T> hibernateCallback)
<T> T
execute(org.springframework.transaction.support.TransactionCallback<T> action)
-
-
-
Method Detail
-
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
-
-