Hitachi

Hitachi Advanced Database Application Development Guide


8.4.28 setObject(int parameterIndex, Object x, int targetSqlType, int scale)

Organization of this subsection

(1) Function

This method sets the value of a specified object as a dynamic parameter value.

(2) Format

public synchronized void setObject(int parameterIndex, Object x, int targetSqlType, int scale) throws SQLException

(3) Arguments

int parameterIndex

Specifies the number of a dynamic parameter.

Object x

Specifies the object that contains the value to be set in the specified dynamic parameter.

int targetSqlType

Specifies JDBC's SQL data type.

int scale

Specifies scaling. This argument is ignored, if specified.

(4) Return value

None.

(5) Exceptions

The JDBC driver throws an SQLException in the following cases: