- parameterIndex
- the parameter number index, where the first parameter has index 1.
- theTimestamp
- the java.sql.Timestamp value to which the parameter at parameterIndex is set.
- cal
- a Calendar to use to construct the SQL TIMESTAMP value
Type Reason Java.Sql.SQLException if a database error happens.
Sets the value of a specified parameter to a supplied java.sql.Timestamp value, using the supplied Calendar.
The driver uses the supplied Calendar to create the SQL TIMESTAMP value, which allows it to use a custom timezone - otherwise the driver uses the VM defaults. See "Be wary of the default locale".