public enum Isolation extends Enum<Isolation>
SERIALIZABLE
is the most restrictive.
READ_UNCOMMITTED
is the least restrictive.
Transactional
Enum Constant and Description |
---|
COUNTER
Use the isolation level of the counter service, as defined by the portal
properties.
|
DEFAULT
Use the default isolation level of the underlying data store.
|
PORTAL
Use the isolation level of the portal, as defined by the portal
properties.
|
READ_COMMITTED
Prevent dirty reads; allow non-repeatable reads and phantom reads.
|
READ_UNCOMMITTED
Allow dirty reads, non-repeatable reads, and phantom reads.
|
REPEATABLE_READ
Prevent dirty reads and non-repeatable reads; allow phantom reads.
|
SERIALIZABLE
Prevent dirty reads, non-repeatable reads, and phantom reads.
|
Modifier and Type | Method and Description |
---|---|
static Isolation |
getIsolation(int value) |
int |
value() |
static Isolation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Isolation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Isolation COUNTER
public static final Isolation DEFAULT
public static final Isolation PORTAL
public static final Isolation READ_COMMITTED
public static final Isolation READ_UNCOMMITTED
public static final Isolation REPEATABLE_READ
public static final Isolation SERIALIZABLE
public static Isolation[] values()
for (Isolation c : Isolation.values()) System.out.println(c);
public static Isolation 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 static Isolation getIsolation(int value)
public int value()