Hitachi

Hitachi Advanced Database Application Development Guide


8.6.153 supportsResultSetConcurrency(int type, int concurrency)

Organization of this subsection

(1) Function

This method acquires a value indicating whether the combination of a specified result set type and a specified concurrent processing type is supported.

(2) Format

public synchronized boolean supportsResultSetConcurrency(int type, int concurrency) throws SQLException

(3) Arguments

int type

Specifies a result set type.

int concurrency

Specifies a concurrent processing type.

(4) Return value

boolean type:

The method returns one of the following values:

true: Supported

false: Not supported

If type is ResultSet.TYPE_FORWARD_ONLY or ResultSet.TYPE_SCROLL_INSENSITIVE and concurrency is ResultSet.CONCUR_READ_ONLY, the method returns true; otherwise, the method returns false.

(5) Exceptions

If this Connection object is closed before this method is executed, the JDBC driver throws an SQLException.