public enum TransactionType extends java.lang.Enum<TransactionType>
| Enum Constant and Description |
|---|
MAYBE_TRANSACTION
有事务就加入事务,没有不创建事务,默认情况
|
NEW_TRANSACTION
始终创建新事务
|
NO_TRANSACTION
没有事务
|
REQUIRED_TRANSACTION
如果没有事务创建新事务,有事务加入当前事务
|
RW_TRANSACTION
读写事务类型,支持数据库读写操作,事务中所做的操作
其他事务都可以看到
|
UNKNOWN_TRANSACTION
未知事务类型
|
| Modifier and Type | Method and Description |
|---|---|
static TransactionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TransactionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransactionType NEW_TRANSACTION
public static final TransactionType REQUIRED_TRANSACTION
public static final TransactionType MAYBE_TRANSACTION
public static final TransactionType NO_TRANSACTION
public static final TransactionType UNKNOWN_TRANSACTION
public static final TransactionType RW_TRANSACTION
public static TransactionType[] values()
for (TransactionType c : TransactionType.values()) System.out.println(c);
public static TransactionType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null