public abstract Time getTime (String parameterName, Calendar cal) throws SQLException

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

Parameters:
parameterName    the name of the parameter
cal    the Calendar object the driver will use to construct the time

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

Exceptions:
SQLException    if parameterName does not correspond to a named parameter; if a database access error occurs or this method is called on a closed CallableStatement
SQLFeatureNotSupportedException    if the JDBC driver does not support this method

See also:
setTime

Since:  1.4