- parameterIndex
- the parameter number index, where the first parameter has index 1.
- theDate
- a java.sql.Date to which the parameter at parameterIndex is set.
- cal
- a Calendar to use to construct the SQL DATE value.
Type Reason Java.Sql.SQLException if a database error happens.
Sets the value of a specified parameter to a supplied java.sql.Date value, using a supplied Calendar to map the Date. The Calendar allows the application to control the timezone used to compute the SQL DATE in the database - without the supplied Calendar, the driver uses the VM defaults. See "Be wary of the default locale".