org.springframework.transaction
Class HeuristicCompletionException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.springframework.core.NestedRuntimeException
                  extended byorg.springframework.transaction.TransactionException
                      extended byorg.springframework.transaction.HeuristicCompletionException
All Implemented Interfaces:
java.io.Serializable

public class HeuristicCompletionException
extends TransactionException

Exception that represents a transaction failure caused by heuristics.

Since:
17-Mar-2003
Version:
$Revision: 1.2 $
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 ex)
           
 
Method Summary
 int getOutcomeState()
           
static java.lang.String getStateString(int state)
           
 
Methods inherited from class org.springframework.core.NestedRuntimeException
getCause, getMessage, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, initCause, 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 ex)
Method Detail

getStateString

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

getOutcomeState

public int getOutcomeState()


Copyright (C) 2003-2004 The Spring Framework Project.