com.atlassian.bamboo.persistence
Class BambooTransactionHibernateTemplate

java.lang.Object
  extended by 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
BambooTransactionHibernateTemplate(org.springframework.orm.hibernate3.HibernateTemplate hibernateTemplate, org.springframework.transaction.support.TransactionTemplate transactionTemplate)
           
 
Method Summary
 void doWork(org.hibernate.jdbc.Work work)
           
<T> T
execute(org.springframework.orm.hibernate3.HibernateCallback<T> hibernateCallback)
           
<T> T
execute(org.springframework.transaction.support.TransactionCallback<T> action)
           
<T> T
executeWithResult(org.springframework.orm.hibernate3.HibernateCallback<T> hibernateCallback)
          Deprecated. since 5.7 use execute(org.springframework.orm.hibernate3.HibernateCallback)
<T> T
executeWithResult(org.springframework.transaction.support.TransactionCallback<T> transactionCallback)
          Deprecated. since 5.7 use execute(org.springframework.transaction.support.TransactionCallback)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BambooTransactionHibernateTemplate

public BambooTransactionHibernateTemplate(org.springframework.orm.hibernate3.HibernateTemplate hibernateTemplate,
                                          org.springframework.transaction.support.TransactionTemplate transactionTemplate)
Method Detail

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.hibernate3.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

executeWithResult

@Deprecated
public <T> T executeWithResult(org.springframework.transaction.support.TransactionCallback<T> transactionCallback)
Deprecated. since 5.7 use execute(org.springframework.transaction.support.TransactionCallback)


executeWithResult

@Deprecated
public <T> T executeWithResult(org.springframework.orm.hibernate3.HibernateCallback<T> hibernateCallback)
Deprecated. since 5.7 use execute(org.springframework.orm.hibernate3.HibernateCallback)



Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.