8.2.20 getTransactionIsolation()
- Organization of this subsection
(1) Function
This method acquires the current transaction isolation level for this Connection object.
(2) Format
public synchronized int getTransactionIsolation() throws SQLException
(3) Arguments
None.
(4) Return value
This method returns the current transaction isolation level, which is one of the following:
-
Connection.TRANSACTION_READ_COMMITTED
This value is returned when READ COMMITTED is applied as the transaction isolation level.
-
Connection.TRANSACTION_REPEATABLE_READ
This value is returned when REPEATABLE READ is applied as the transaction isolation level.
(5) Exceptions
If this Connection object is closed, the JDBC driver throws an SQLException.