Hitachi

Hitachi Advanced Database Application Development Guide


11.2.5 getParameterType(int param)

Organization of this subsection

(1) Function

This method acquires a specified parameter's SQL data type.

(2) Format

public synchronized int getParameterType(int param) throws SQLException

(3) Arguments

int param

Specifies a parameter number (beginning with 1).

(4) Return value

The method returns the SQL type obtained from java.sql.Types.

For details about the correspondence between data types and return values of columns, see (1) Correspondence between HADB's data types and JDBC's SQL data types in 7.6.1 Mapping data types.

(5) Exceptions

If the specified param value is 0 or less, or is greater than the number of parameters, the JDBC driver throws an SQLException.