Hitachi

Hitachi Advanced Database Application Development Guide


8.2.39 setReadOnly(boolean readOnly)

Organization of this subsection

(1) Function

This method sets this Connection object in the read-only mode. The method sets the transaction access mode.

(2) Format

public synchronized void setReadOnly(boolean readOnly) throws SQLException

(3) Arguments

boolean readOnly

Specify true to set the Connection object in the read-only mode; otherwise, specify false.

(4) Return value

None.

(5) Exceptions

The JDBC driver throws an SQLException in the following cases:

(6) Notes