| org.springframework.transaction.annotation.Isolation
Field Summary | |
Enum Constant | DEFAULT Use the default isolation level of the underlying datastore. | Enum Constant | READ_COMMITTED A constant indicating that dirty reads are prevented; non-repeatable reads
and phantom reads can occur. | Enum Constant | READ_UNCOMMITTED A constant indicating that dirty reads, non-repeatable reads and phantom reads
can occur. | Enum Constant | REPEATABLE_READ A constant indicating that dirty reads and non-repeatable reads are
prevented; phantom reads can occur. | Enum Constant | SERIALIZABLE A constant indicating that dirty reads, non-repeatable reads and phantom
reads are prevented. |
Method Summary | |
public int | value() |
DEFAULT | Enum Constant DEFAULT(Code) | | Use the default isolation level of the underlying datastore.
All other levels correspond to the JDBC isolation levels.
See Also: java.sql.Connection |
READ_COMMITTED | Enum Constant READ_COMMITTED(Code) | | A constant indicating that dirty reads are prevented; non-repeatable reads
and phantom reads can occur. This level only prohibits a transaction
from reading a row with uncommitted changes in it.
See Also: java.sql.Connection.TRANSACTION_READ_COMMITTED |
READ_UNCOMMITTED | Enum Constant READ_UNCOMMITTED(Code) | | A constant indicating that dirty reads, non-repeatable reads and phantom reads
can occur. This level allows a row changed by one transaction to be read by
another transaction before any changes in that row have been committed
(a "dirty read"). If any of the changes are rolled back, the second
transaction will have retrieved an invalid row.
See Also: java.sql.Connection.TRANSACTION_READ_UNCOMMITTED |
REPEATABLE_READ | Enum Constant REPEATABLE_READ(Code) | | A constant indicating that dirty reads and non-repeatable reads are
prevented; phantom reads can occur. This level prohibits a transaction
from reading a row with uncommitted changes in it, and it also prohibits
the situation where one transaction reads a row, a second transaction
alters the row, and the first transaction rereads the row, getting
different values the second time (a "non-repeatable read").
See Also: java.sql.Connection.TRANSACTION_REPEATABLE_READ |
SERIALIZABLE | Enum Constant SERIALIZABLE(Code) | | A constant indicating that dirty reads, non-repeatable reads and phantom
reads are prevented. This level includes the prohibitions in
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.
See Also: java.sql.Connection.TRANSACTION_SERIALIZABLE |
Isolation | Isolation(int value)(Code) | | |
|
|