Hitachi

Hitachi Advanced Database Application Development Guide


8.3.7 closeOnCompletion()

Organization of this subsection

(1) Function

This method closes the Statement object when all result sets that depend on the Statement object have been closed. This method is invalid when running the Statement object does not generate a result set.

The effect on the Statement object is the same regardless of how many times this method is called.

Calling this method affects subsequent executions of Statement objects, and any Statement objects with dependent result sets that are currently open.

(2) Format

public synchronized void closeOnCompletion() throws SQLException

(3) Arguments

None.

(4) Return value

None.

(5) Exceptions

The JDBC driver throws an SQLException in the following cases: