public class

TransactionSupportImpl

extends Object
implements TransactionSupport
java.lang.Object
   ↳ com.atlassian.jira.transaction.TransactionSupportImpl

Summary

Public Constructors
TransactionSupportImpl(ApplicationProperties applicationProperties)
Public Methods
Transaction begin()
This begins a new transaction if one is not already running for this thread.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.transaction.TransactionSupport

Public Constructors

public TransactionSupportImpl (ApplicationProperties applicationProperties)

Public Methods

public Transaction begin ()

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

Returns
  • a Transaction context object that you can called commit or rollback on