public enum TransactionIsolation extends Enum<TransactionIsolation>
Enum Constant and Description |
---|
NONE
No transactions are supported.
|
READ_COMMITTED
Dirty reads are permitted.
|
READ_UNCOMMITTED
Dirty reads are prevented.
|
REPEATABLE_READ
Dirty reads and non-repeatable reads prevented.
|
SERIALIZABLE
Dirty reads, non-repeatable and phantom reads prevented.
|
Modifier and Type | Method and Description |
---|---|
static TransactionIsolation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TransactionIsolation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TransactionIsolation NONE
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
- 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 null