|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<Isolation> org.springframework.transaction.annotation.Isolation
public enum Isolation
Enumeration that represents transaction isolation levels for use with the JDK 1.5+ transaction annotation, corresponding to the TransactionDefinition interface.
Transactional
,
TransactionDefinition
Enum Constant Summary | |
---|---|
DEFAULT
Use the default isolation level of the underlying datastore. |
|
READ_COMMITTED
A constant indicating that dirty reads are prevented; non-repeatable reads and phantom reads can occur. |
|
READ_UNCOMMITTED
A constant indicating that dirty reads, non-repeatable reads and phantom reads can occur. |
|
REPEATABLE_READ
A constant indicating that dirty reads and non-repeatable reads are prevented; phantom reads can occur. |
|
SERIALIZABLE
A constant indicating that dirty reads, non-repeatable reads and phantom reads are prevented. |
Method Summary | |
---|---|
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're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Isolation DEFAULT
Connection
public static final Isolation READ_UNCOMMITTED
Connection.TRANSACTION_READ_UNCOMMITTED
public static final Isolation READ_COMMITTED
Connection.TRANSACTION_READ_COMMITTED
public static final Isolation REPEATABLE_READ
Connection.TRANSACTION_REPEATABLE_READ
public static final Isolation SERIALIZABLE
ISOLATION_REPEATABLE_READ
and further prohibits the situation
where one transaction reads all rows that satisfy a WHERE
condition, a second transaction inserts a row that satisfies that
WHERE
condition, and the first transaction rereads for the
same condition, retrieving the additional "phantom" row in the second read.
Connection.TRANSACTION_SERIALIZABLE
Method Detail |
---|
public static final 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 namepublic int value()
|
The Spring Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |