类 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
- 所有已实现的接口:
Serializable
public class HeuristicCompletionException extends TransactionException
Exception that represents a transaction failure caused by a heuristic decision on the side of the transaction coordinator.- 从以下版本开始:
- 17.03.2003
- 作者:
- Rod Johnson, Juergen Hoeller
- 另请参阅:
- 序列化表格
字段概要
字段 修饰符和类型 字段 说明 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.
构造器概要
构造器 构造器 说明 HeuristicCompletionException(int outcomeState, Throwable cause)
Constructor for HeuristicCompletionException.
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 int
getOutcomeState()
Return the outcome state of the transaction state, as one of the constants in this class.static String
getStateString(int state)
从类继承的方法 org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
字段详细资料
STATE_UNKNOWN
public static final int STATE_UNKNOWN
Values for the outcome state of a heuristically completed transaction.- 另请参阅:
- 常量字段值
STATE_COMMITTED
public static final int STATE_COMMITTED
- 另请参阅:
- 常量字段值
STATE_ROLLED_BACK
public static final int STATE_ROLLED_BACK
- 另请参阅:
- 常量字段值
STATE_MIXED
public static final int STATE_MIXED
- 另请参阅:
- 常量字段值
构造器详细资料
HeuristicCompletionException
public HeuristicCompletionException(int outcomeState, Throwable cause)
Constructor for HeuristicCompletionException.- 参数:
outcomeState
- the outcome state of the transactioncause
- the root cause from the transaction API in use
方法详细资料
getStateString
public static String getStateString(int state)
getOutcomeState
public int getOutcomeState()
Return the outcome state of the transaction state, as one of the constants in this class.