Overview | Package | Class | Tree | Deprecated | Index | Help
| Spring Framework
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.springframework.transaction
Class HeuristicCompletionException

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

All Implemented Interfaces:
  java.io.Serializable

    public class HeuristicCompletionException

extends TransactionException

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

Since:
  17.03.2003
Author:
  Rod Johnson, Juergen Hoeller
See Also:
  Serialized Form

Field Summary
`static int` | `STATE_COMMITTED`
`static int` | `STATE_MIXED`
`static int` | `STATE_ROLLED_BACK`
`static int` | `STATE_UNKNOWN` Values for the outcome state of a heuristically completed transaction.

Constructor Summary
`HeuristicCompletionException(int outcomeState, java.lang.Throwable cause)` Constructor for HeuristicCompletionException.

Method Summary
`int` | `getOutcomeState()` Return the outcome state of the transaction state, as one of the constants in this class.
`static java.lang.String` | `getStateString(int state)`

Methods inherited from class org.springframework.core.NestedRuntimeException
`contains, getMessage, getMostSpecificCause, getRootCause`

Methods inherited from class java.lang.Throwable
`fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Field Detail

### STATE_UNKNOWN

    public static final int STATE_UNKNOWN

  Values for the outcome state of a heuristically completed transaction.

  See Also:
    Constant Field Values

### STATE_COMMITTED

    public static final int STATE_COMMITTED

See Also:
  Constant Field Values

### STATE_ROLLED_BACK

    public static final int STATE_ROLLED_BACK

See Also:
  Constant Field Values

### STATE_MIXED

    public static final int STATE_MIXED

See Also:
  Constant Field Values

Constructor Detail

### HeuristicCompletionException

    public HeuristicCompletionException(int outcomeState,
                                        java.lang.Throwable cause)

  Constructor for HeuristicCompletionException.

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

Method Detail

### getStateString

    public static java.lang.String getStateString(int state)

### getOutcomeState

    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`

Overview | Package | Class | Tree | Deprecated | Index | Help
| Spring Framework
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD