public enum TransactionIsolationLevel extends Enum<TransactionIsolationLevel>
| Enum Constant and Description |
|---|
DEFAULT
ignore, and use by default.
|
TRANSACTION_NONE
A constant indicating that transactions are not supported.
|
TRANSACTION_READ_COMMITTED
A constant indicating that dirty reads are prevented;
non-repeatable reads and phantom reads can occur. |
TRANSACTION_READ_UNCOMMITTED
A constant indicating that dirty reads, non-repeatable reads and phantom reads can occur.
|
TRANSACTION_REPEATABLE_READ
A constant indicating that dirty reads and non-repeatable reads are prevented; phantom reads can occur.
|
TRANSACTION_SERIALIZABLE
A constant indicating that dirty reads, non-repeatable reads and phantom reads are prevented.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getLevel()
get the value of TransactionIsolationLevel.
|
static TransactionIsolationLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransactionIsolationLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransactionIsolationLevel DEFAULT
public static final TransactionIsolationLevel TRANSACTION_NONE
public static final TransactionIsolationLevel TRANSACTION_READ_UNCOMMITTED
public static final TransactionIsolationLevel TRANSACTION_READ_COMMITTED
public static final TransactionIsolationLevel TRANSACTION_REPEATABLE_READ
public static final TransactionIsolationLevel TRANSACTION_SERIALIZABLE
TRANSACTION_REPEATABLE_READ and further prohibits the
WHERE condition, a second transaction inserts a row that
WHERE condition, and the first transaction
public static TransactionIsolationLevel[] values()
for (TransactionIsolationLevel c : TransactionIsolationLevel.values()) System.out.println(c);
public static TransactionIsolationLevel 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 int getLevel()
Copyright © 2022. All rights reserved.