public abstract void setURL (String parameterName, URL val) throws SQLException

Sets the designated parameter to the given java.net.URL object. The driver converts this to an SQL DATALINK value when it sends it to the database.

Parameters:
parameterName    the name of the parameter
val    the parameter value

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

See also:
getURL

Since:  1.4