Class SerialDatalink
java.lang.Object
javax.sql.rowset.serial.SerialDatalink
- All Implemented Interfaces:
Serializable, Cloneable
A serialized mapping in the Java programming language of an SQL
DATALINK value. A DATALINK value
references a file outside of the underlying data source that the
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);
Thread safety
A 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:
-
Constructor Summary
ConstructorsConstructorDescriptionSerialDatalink(URL url) Constructs a newSerialDatalinkobject from the givenjava.net.URLobject. -
Method Summary
Methods declared in class Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitModifier and TypeMethodDescriptionprotected voidfinalize()Deprecated, for removal: This API element is subject to removal in a future version.May cause performance issues, deadlocks and hangs.getClass()Answers the unique instance of java.lang.Class which represents the class of the receiver.final voidnotify()Causes one thread which iswaiting on the receiver to be made ready to run.final voidCauses all threads which arewaiting on the receiver to be made ready to run.toString()Answers a string containing a concise, human-readable description of the receiver.final voidwait()Causes the thread which sent this message to be made not ready to run pending some change in the receiver (as indicated bynotifyornotifyAll).final voidwait(long time) Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated bynotifyornotifyAll) or the expiration of the timeout.final voidwait(long time, int frac) Causes the thread which sent this message to be made not ready to run either pending some change in the receiver (as indicated bynotifyornotifyAll) or the expiration of the timeout.
-
Constructor Details
-
SerialDatalink
Constructs a newSerialDatalinkobject from the givenjava.net.URLobject.- Parameters:
url- theURLto create theSerialDataLinkfrom- Throws:
SerialException- if url parameter is a null
-
-
Method Details
-
getDatalink
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 theURLobject cannot be de-serialized
-
equals
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 -
hashCode
-
clone
-