- java.lang.Object
- 
- javax.sql.rowset.serial.SerialDatalink
 
- 
- All Implemented Interfaces:
- Serializable,- Cloneable
 
 public class SerialDatalink extends Object implements Serializable, Cloneable A serialized mapping in the Java programming language of an SQLDATALINKvalue. ADATALINKvalue references a file outside of the underlying data source that the data source manages.RowSetimplementations can use the methodRowSet.getURLto retrieve ajava.net.URLobject, which can be used to manipulate the external data.java.net.URL url = rowset.getURL(1);Thread safetyA SerialDatalink is not safe for use by multiple concurrent threads. If a SerialDatalink is to be used by more than one thread then access to the SerialDatalink should be controlled by appropriate synchronization.- Since:
- 1.5
- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description SerialDatalink(URL url)Constructs a newSerialDatalinkobject from the givenjava.net.URLobject.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()Returns a clone of thisSerialDatalink.booleanequals(Object obj)Compares thisSerialDatalinkto the specified object.URLgetDatalink()Returns a new URL that is a copy of thisSerialDatalinkobject.inthashCode()Returns a hash code for thisSerialDatalink.
 
- 
- 
- 
Constructor Detail- 
SerialDatalinkpublic SerialDatalink(URL url) throws SerialException Constructs a newSerialDatalinkobject from the givenjava.net.URLobject.- Parameters:
- url- the- URLto create the- SerialDataLinkfrom
- Throws:
- SerialException- if url parameter is a null
 
 
- 
 - 
Method Detail- 
getDatalinkpublic URL getDatalink() throws SerialException Returns a new URL that is a copy of thisSerialDatalinkobject.- Returns:
- a copy of this SerialDatalinkobject as aURLobject in the Java programming language.
- Throws:
- SerialException- if the- URLobject cannot be de-serialized
 
 - 
equalspublic boolean equals(Object obj) Compares thisSerialDatalinkto the specified object. The result istrueif and only if the argument is notnulland is aSerialDatalinkobject whose URL is identical to this object's URL- Overrides:
- equalsin class- Object
- Parameters:
- obj- The object to compare this- SerialDatalinkagainst
- Returns:
- trueif the given object represents a- SerialDatalinkequivalent to this SerialDatalink,- falseotherwise
- See Also:
- Object.hashCode(),- HashMap
 
 - 
hashCodepublic int hashCode() Returns a hash code for thisSerialDatalink. The hash code for aSerialDatalinkobject is taken as the hash code of theURLit stores- Overrides:
- hashCodein class- Object
- Returns:
- a hash code value for this object.
- See Also:
- Object.equals(java.lang.Object),- System.identityHashCode(java.lang.Object)
 
 
- 
 
-