public final class IsolationLevel extends Object
Modifier and Type | Field and Description |
---|---|
static IsolationLevel |
READ_COMMITTED
The read committed isolation level.
|
static IsolationLevel |
READ_UNCOMMITTED
The read uncommitted isolation level.
|
static IsolationLevel |
REPEATABLE_READ
The repeatable read isolation level.
|
static IsolationLevel |
SERIALIZABLE
The serializable isolation level.
|
Modifier and Type | Method and Description |
---|---|
String |
asSql()
Returns the SQL string represented by each value.
|
String |
toString() |
static IsolationLevel |
valueOf(String sql)
Returns a constant single of an isolation level.
|
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 valueOf(String sql)
sql
- the SQL statement representing the isolation levelIllegalArgumentException
- if name
is null
or emptypublic String asSql()
Copyright © 2021. All rights reserved.