Hitachi

Hitachi Advanced Database Application Development Guide


8.3.24 getQueryTimeout()

Organization of this subsection

(1) Function

This method acquires the timeout time set for SQL processing in the setQueryTimeout method.

(2) Format

public synchronized int getQueryTimeout() throws SQLException

(3) Arguments

None.

(4) Return value

This method returns the timeout value (in seconds) that was set by the setQueryTimeout method. If the setQueryTimeout method has not been executed, the method returns 0.

(5) Exceptions

The JDBC driver throws an SQLException in the following cases: