Hitachi

Hitachi Advanced Database Application Development Guide


8.7.20 isSearchable(int column)

Organization of this subsection

(1) Function

This method returns a value indicating whether a specified column can be specified in a where clause.

(2) Format

public synchronized boolean isSearchable(int column) throws SQLException

(3) Arguments

int column

Specifies a column number (where the first column is 1).

(4) Return value

The method returns one of the following values:

true

The column can be specified in a where clause.

false

The column cannot be specified in a where clause.

If the ResultSet object was created by the DatabaseMetaData interface, the method returns false; otherwise, the method returns true.

(5) Exceptions

If the specified column value is 0 or less, or is greater than the number of columns in the table, the JDBC driver throws an SQLException.