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

    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)
     

    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 interface org.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 interface TransactionAndHibernateTemplate
    • doWork

      public void doWork(org.hibernate.jdbc.Work work) throws org.hibernate.HibernateException
      Specified by:
      doWork in interface TransactionAndHibernateTemplate
      Throws:
      org.hibernate.HibernateException