code: public void setURL(final int parameterIndex, final URL x) throws SQLException {
          setParameter(parameterIndex, new StringParameter(x.toString()));
      }
docs: Sets the designated parameter to the given <code>java.net.URL</code> value. The driver converts this to an SQL
  <code>DATALINK</code> value when it sends it to the database.
  
  @param parameterIndex the first parameter is 1, the second is 2, ...
  @param x              the <code>java.net.URL</code> object to be set
  @throws java.sql.SQLException if parameterIndex does not correspond to a parameter marker in the SQL statement;
  if a database access error occurs or this method is called on a closed
  <code>PreparedStatement</code>
  @throws java.sql.SQLFeatureNotSupportedException
  if the JDBC driver does not support this method
  @since 1.4