public enum TransactionIsolation extends Enum<TransactionIsolation>
枚举常量和说明 |
---|
DEFAULT
默认隔离级别
|
READ_COMMITTED
读已提交,即能够读到那些已经提交的数据
|
READ_UNCOMMITTED
读未提交,即能够读取到没有被提交的数据
|
REPEATABLE_READ
重复读取,即在数据读出来之后加锁
|
SERIALIZABLE
串行化,最高的事务隔离级别
|
限定符和类型 | 方法和说明 |
---|---|
int |
getValue() |
static TransactionIsolation |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static TransactionIsolation[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final TransactionIsolation DEFAULT
public static final TransactionIsolation READ_UNCOMMITTED
public static final TransactionIsolation READ_COMMITTED
public static final TransactionIsolation REPEATABLE_READ
public static final TransactionIsolation SERIALIZABLE
public static TransactionIsolation[] values()
for (TransactionIsolation c : TransactionIsolation.values()) System.out.println(c);
public static TransactionIsolation valueOf(String name)
name
- 要返回的枚举常量的名称。IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量NullPointerException
- 如果参数为空值public int getValue()
Copyright © 2022 buession.com Inc.. All rights reserved.