com.atlassian.jira.transaction
Class TransactionSupportImpl

java.lang.Object
  extended by com.atlassian.jira.transaction.TransactionSupportImpl
All Implemented Interfaces:
TransactionSupport

public class TransactionSupportImpl
extends Object
implements TransactionSupport

Since:
v4.4.1

Constructor Summary
TransactionSupportImpl(ApplicationProperties applicationProperties)
           
 
Method Summary
 Transaction begin()
          This begins a new transaction if one is not already running for this thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransactionSupportImpl

public TransactionSupportImpl(ApplicationProperties applicationProperties)
Method Detail

begin

public Transaction begin()
                  throws TransactionRuntimeException
Description copied from interface: TransactionSupport
This begins a new transaction if one is not already running for this thread.

It will be a NoOp if a transaction is already running and in this case a call to Transaction.commit() will also be a NoOp. The outer caller is then reponsible for the ultimate commit or rollback.

It will also be a NoOp if a transaction support in JIRA is turned off.

Specified by:
begin in interface TransactionSupport
Returns:
a Transaction context object that you can called commit or rollback on
Throws:
TransactionRuntimeException


Copyright © 2002-2013 Atlassian. All Rights Reserved.