public interface

TransactionSupport

com.atlassian.jira.transaction.TransactionSupport
Known Indirect Subclasses

Class Overview

Represents the ability to peform a database transaction in JIRA.

Summary

Public Methods
Transaction begin()
This begins a new transaction if one is not already running for this thread.

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
Throws
GenericTransactionException if the transaction can not be established at all
TransactionRuntimeException