Hitachi

Hitachi Advanced Database Application Development Guide


8.4.33 setTimestamp(int parameterIndex, Timestamp x)

Organization of this subsection

(1) Function

This method sets a specified java.sql.Timestamp object as a dynamic parameter value.

(2) Format

public synchronized void setTimestamp(int parameterIndex, Timestamp x) throws SQLException

(3) Arguments

int parameterIndex

Specifies the number of a dynamic parameter.

Timestamp x

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

(4) Return value

None.

(5) Exceptions

The JDBC driver throws an SQLException in the following cases: