public class

HeuristicCompletionException

extends TransactionException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ org.springframework.core.NestedRuntimeException
           ↳ org.springframework.transaction.TransactionException
             ↳ org.springframework.transaction.HeuristicCompletionException

Class Overview

Exception that represents a transaction failure caused by a heuristic decision on the side of the transaction coordinator.

Summary

Constants
int STATE_COMMITTED
int STATE_MIXED
int STATE_ROLLED_BACK
int STATE_UNKNOWN Values for the outcome state of a heuristically completed transaction.
Public Constructors
HeuristicCompletionException(int outcomeState, Throwable cause)
Constructor for HeuristicCompletionException.
Public Methods
int getOutcomeState()
Return the outcome state of the transaction state, as one of the constants in this class.
static String getStateString(int state)
[Expand]
Inherited Methods
From class org.springframework.core.NestedRuntimeException
From class java.lang.Throwable
From class java.lang.Object

Constants

public static final int STATE_COMMITTED

Constant Value: 1 (0x00000001)

public static final int STATE_MIXED

Constant Value: 3 (0x00000003)

public static final int STATE_ROLLED_BACK

Constant Value: 2 (0x00000002)

public static final int STATE_UNKNOWN

Values for the outcome state of a heuristically completed transaction.

Constant Value: 0 (0x00000000)

Public Constructors

public HeuristicCompletionException (int outcomeState, Throwable cause)

Constructor for HeuristicCompletionException.

Parameters
outcomeState the outcome state of the transaction
cause the root cause from the transaction API in use

Public Methods

public int getOutcomeState ()

Return the outcome state of the transaction state, as one of the constants in this class.

public static String getStateString (int state)