com.taobao.metamorphosis.transaction
枚举 TransactionInfo.TransactionType
java.lang.Object
java.lang.Enum<TransactionInfo.TransactionType>
com.taobao.metamorphosis.transaction.TransactionInfo.TransactionType
- 所有已实现的接口:
- Serializable, Comparable<TransactionInfo.TransactionType>
- 包容类:
- TransactionInfo
public static enum TransactionInfo.TransactionType
- extends Enum<TransactionInfo.TransactionType>
事务状态
- 作者:
- boyan
BEGIN
public static final TransactionInfo.TransactionType BEGIN
PREPARE
public static final TransactionInfo.TransactionType PREPARE
COMMIT_ONE_PHASE
public static final TransactionInfo.TransactionType COMMIT_ONE_PHASE
COMMIT_TWO_PHASE
public static final TransactionInfo.TransactionType COMMIT_TWO_PHASE
ROLLBACK
public static final TransactionInfo.TransactionType ROLLBACK
RECOVER
public static final TransactionInfo.TransactionType RECOVER
FORGET
public static final TransactionInfo.TransactionType FORGET
END
public static final TransactionInfo.TransactionType END
values
public static TransactionInfo.TransactionType[] values()
- 按照声明该枚举类型的常量的顺序,返回
包含这些常量的数组。该方法可用于迭代
常量,如下所示:
for (TransactionInfo.TransactionType c : TransactionInfo.TransactionType.values())
System.out.println(c);
valueOf
public static TransactionInfo.TransactionType valueOf(String name)
- 返回带有指定名称的该类型的枚举常量。
字符串必须与用于声明该类型的枚举常量的
标识符完全匹配。(不允许有多余
的空格。)
- 参数:
name
- 要返回的枚举常量的名称。
- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
如果该枚举类型没有带有指定名称的常量,
- 则抛出 IllegalArgumentException
Copyright © 2010–2013. All rights reserved.