public enum IsolationLevel extends Enum<IsolationLevel>
| Enum Constant and Description |
|---|
READ_COMMITTED
The read committed isolation level.
|
READ_UNCOMMITTED
The read uncommitted isolation level.
|
REPEATABLE_READ
The repeatable read isolation level.
|
SERIALIZABLE
The serializable isolation level.
|
| Modifier and Type | Method and Description |
|---|---|
String |
asSql()
Returns the SQL string represented by each value.
|
static IsolationLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IsolationLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IsolationLevel READ_COMMITTED
public static final IsolationLevel READ_UNCOMMITTED
public static final IsolationLevel REPEATABLE_READ
public static final IsolationLevel SERIALIZABLE
public static IsolationLevel[] values()
for (IsolationLevel c : IsolationLevel.values()) System.out.println(c);
public static IsolationLevel valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String asSql()
Copyright © 2019. All rights reserved.