Hitachi

Hitachi Advanced Database Application Development Guide


8.2.41 setTransactionIsolation(int level)

Organization of this subsection

(1) Function

This method sets the transaction isolation level for this Connection object.

(2) Format

public synchronized void setTransactionIsolation(int level) throws SQLException

(3) Arguments

int level

Specifies the transaction isolation level to be applied. Specify one of the following values:

  • Connection.TRANSACTION_READ_COMMITTED

    Specifies that READ COMMITTED is to be applied as the transaction isolation level.

  • Connection.TRANSACTION_REPEATABLE_READ

    Specifies that REPEATABLE READ is to be applied as the transaction isolation level.

(4) Return value

None.

(5) Exceptions

The JDBC driver throws an SQLException in the following cases:

(6) Notes