@Transactional annotation, corresponding to the
TransactionDefinition interface.
| Modifier and Type | Field and Description |
|---|---|
| public static final Isolation | DEFAULT
Use the default isolation level of the underlying data store. |
| public static final Isolation | READ_COMMITTED
A constant indicating that dirty reads are prevented; non-repeatable reads and phantom reads can occur. |
| public static final Isolation | READ_UNCOMMITTED
A constant indicating that dirty reads, non-repeatable reads, and phantom reads can occur. |
| public static final Isolation | REPEATABLE_READ
A constant indicating that dirty reads and non-repeatable reads are prevented; phantom reads can occur. |
| public static final Isolation | SERIALIZABLE
A constant indicating that dirty reads, non-repeatable reads, and phantom reads are prevented. |
| private final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | |
| public static Isolation | |
| public static Isolation[] |
| DEFAULT | back to summary |
|---|---|
| public static final Isolation DEFAULT Use the default isolation level of the underlying data store. All other levels correspond to the JDBC isolation levels.
| |
| READ_COMMITTED | back to summary |
|---|---|
| public static final Isolation READ_COMMITTED 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. | |
| READ_UNCOMMITTED | back to summary |
|---|---|
| public static final Isolation READ_UNCOMMITTED 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. | |
| REPEATABLE_READ | back to summary |
|---|---|
| public static final Isolation REPEATABLE_READ 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 re-reads the row, getting different values the second time (a "non-repeatable read"). | |
| SERIALIZABLE | back to summary |
|---|---|
| public static final Isolation SERIALIZABLE A constant indicating that dirty reads, non-repeatable reads, and phantom reads are prevented. This level includes the prohibitions in | |
| value | back to summary |
|---|---|
| private final int value | |
| Isolation | back to summary |
|---|---|
| private Isolation(int value) | |
| value | back to summary |
|---|---|
| public int value() | |
| valueOf | back to summary |
|---|---|
| public static Isolation valueOf(String name) | |
| values | back to summary |
|---|---|
| public static Isolation[] values() | |