JDBC Transaction Isolation Levels Supported by NuoDB
NuoDB and java.sql.Connection
Transaction Isolation Levels.
Note
Different NuoDB drivers support the isolation levels in different ways. Consult the documentation for each driver you are using to find which isolation levels are supported by that driver.
The JDBC interface provides five transaction isolation levels. NuoDB does not support all of the levels. NuoDB also supports two additional levels that are not in the JDBC standard. The following tables describe the levels that are supported by NuoDB.
ID | JDBC Constant | NuoDB JDBC Driver Support | Description (Reads only) | Description (Updates) |
---|---|---|---|---|
0 |
|
no |
No Transactions. |
|
1 |
|
no |
Dirty reads, non-repeatable reads and phantom reads can occur. |
|
2 |
|
yes |
Dirty reads are prevented; non-repeatable reads and phantom reads can occur. |
Blocks on conflict; waits for other transaction to finish. |
4 |
|
|
Dirty reads are prevented; non-repeatable reads happen after writes; phantom reads can occur. |
|
8 |
|
yes |
Dirty reads, non-repeatable reads and phantom reads are prevented. |
No Blocking; update conflicts may occur. |
* not supported directly; use TRANSACTION_CONSISTENT_READ instead. |
ID | JDBC Constant | NuoDB JDBC Driver Support | Description (Reads only) | Description (Updates) |
---|---|---|---|---|
7 |
|
yes |
NuoDB only. Native level. |
No blocking; update conflicts may occur. |