/** * Writes an <code>java.sql.Type.DATALINK</code> object in the Java * programming language to this <code>SQLOutputImpl</code> object. The * driver converts this value to a serializable <code>SerialDatalink</code> * SQL <code>DATALINK</code> value before return it to the database. * * @param url an object representing a SQL <code>DATALINK</code> value * @throws SQLException if the <code>SQLOutputImpl</code> object is in * use by a <code>SQLData</code> object attempting to write the attribute * values of a UDT to the database. */ @SuppressWarnings("unchecked") public void writeURL(java.net.URL url) throws SQLException { if (url == null) { attribs.add(null); } else { attribs.add(new SerialDatalink(url)); } }
elements[i] = new SerialDatalink((URL)elements[i]);
elements[i] = new SerialDatalink((URL)elements[i]);