Setting the isolation level for an SQLJ transaction
To set the isolation level for a unit of work within an SQLJ program, use the SET TRANSACTION ISOLATION LEVEL clause.
About this task
The following table shows the values that you can specify in the SET TRANSACTION ISOLATION LEVEL clause and their data server equivalents.
| SET TRANSACTION value | Data server isolation level |
|---|---|
| SERIALIZABLE | Repeatable read |
| REPEATABLE READ | Read stability |
| READ COMMITTED | Cursor stability |
| READ UNCOMMITTED | Uncommitted read |
The isolation level affects the underlying JDBC connection as well as the SQLJ connection.