Package com.atlassian.jira.transaction
Class TransactionSupportImpl
java.lang.Object
com.atlassian.jira.transaction.TransactionSupportImpl
- All Implemented Interfaces:
TransactionSupport
- Since:
- v4.4.1
-
Constructor Summary
ConstructorsConstructorDescriptionTransactionSupportImpl(ApplicationProperties applicationProperties, RequestLocalTransactionRunnableQueueFactory requestLocalTransactionRunnableQueueFactory) -
Method Summary
Modifier and TypeMethodDescriptionbegin()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, waitMethods inherited from interface com.atlassian.jira.transaction.TransactionSupport
execute, execute
-
Constructor Details
-
TransactionSupportImpl
public TransactionSupportImpl(ApplicationProperties applicationProperties, RequestLocalTransactionRunnableQueueFactory requestLocalTransactionRunnableQueueFactory)
-
-
Method Details
-
begin
Description copied from interface:TransactionSupportThis 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:
beginin interfaceTransactionSupport- Returns:
- a
Transactioncontext object that you can called commit or rollback on - Throws:
TransactionRuntimeException- if the transaction can not be established at all
-