javax.sql.rowset.serial
Class SerialDatalink

java.lang.Object
  extended by javax.sql.rowset.serial.SerialDatalink
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class SerialDatalink
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable

A serializable mapping in the Java programming language of an SQL DATALINK value. A DATALINK value references a file outside of the underlying datasource that the the orginating data source manages.

RowSet implementations can use the method RowSet.getURL() to retrieve a java.net.URL object which can be used to manipulate the external data.

      java.net.URL url = rowset.getURL(1);
 

See Also:
Serialized Form

Constructor Summary
SerialDatalink(java.net.URL url)
          Constructs a new SerialDatalink object from the given java.net.URL object.
 
Method Summary
 java.net.URL getDatalink()
          Returns a new URL that is a copy of this SerialDatalink object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerialDatalink

public SerialDatalink(java.net.URL url)
               throws SerialException
Constructs a new SerialDatalink object from the given java.net.URL object.

Throws:
SerialException - if url parameter is a null
Method Detail

getDatalink

public java.net.URL getDatalink()
                         throws SerialException
Returns a new URL that is a copy of this SerialDatalink object

Returns:
a copy of this SerialDatalink object as an URL in the Java programming language
Throws:
SerialException - if the URL object cannot be de-serialized