Top Description Fields Constructors Methods
org.springframework.transaction

public Class HeuristicCompletionException

extends TransactionException
Class Inheritance
Annotations
@SuppressWarnings:serial

Exception that represents a transaction failure caused by a heuristic decision on the side of the transaction coordinator.
Authors
Rod Johnson, Juergen Hoeller
Since
17.03.2003

Field Summary

Modifier and TypeField and Description
private final int
outcomeState

The outcome state of the transaction: have some or all resources been committed?

public static final int
STATE_COMMITTED

Committed outcome state.

public static final int
STATE_MIXED

Mixed outcome state.

public static final int
STATE_ROLLED_BACK

Rolledback outcome state.

public static final int
STATE_UNKNOWN

Unknown outcome state.

Constructor Summary

AccessConstructor and Description
public
HeuristicCompletionException(int
the outcome state of the transaction
outcomeState
,
Throwable
the root cause from the transaction API in use
cause
)

Constructor for HeuristicCompletionException.

Method Summary

Modifier and TypeMethod and Description
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)

Field Detail

outcomeStateback to summary
private final int outcomeState

The outcome state of the transaction: have some or all resources been committed?

STATE_COMMITTEDback to summary
public static final int STATE_COMMITTED

Committed outcome state.

STATE_MIXEDback to summary
public static final int STATE_MIXED

Mixed outcome state.

STATE_ROLLED_BACKback to summary
public static final int STATE_ROLLED_BACK

Rolledback outcome state.

STATE_UNKNOWNback to summary
public static final int STATE_UNKNOWN

Unknown outcome state.

Constructor Detail

HeuristicCompletionExceptionback to summary
public HeuristicCompletionException(int outcomeState, Throwable cause)

Constructor for HeuristicCompletionException.

Parameters
outcomeState:int

the outcome state of the transaction

cause:Throwable

the root cause from the transaction API in use

Method Detail

getOutcomeStateback to summary
public int getOutcomeState()

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

See Also
STATE_UNKNOWN, STATE_COMMITTED, STATE_ROLLED_BACK, STATE_MIXED
getStateStringback to summary
public static String getStateString(int state)