public abstract Timestamp getTimestamp (int parameterIndex, Calendar cal) throws SQLException

Retrieves the value of the designated JDBC TIMESTAMP parameter as a java.sql.Timestamp object, using the given Calendar object to construct the Timestamp object. With a Calendar object, the driver can calculate the timestamp taking into account a custom timezone and locale. If no Calendar object is specified, the driver uses the default timezone and locale.

Parameters:
parameterIndex    the first parameter is 1, the second is 2, and so on
cal    the Calendar object the driver will use to construct the timestamp

Returns:  the parameter value. If the value is SQL NULL, the result is null.

Exceptions:
SQLException    if the parameterIndex is not valid; if a database access error occurs or this method is called on a closed CallableStatement

See also:
setTimestamp

Since:  1.2