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 newSerialDatalink
object from the givenjava.net.URL
object. -
Method Summary
Methods declared in class Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Modifier and TypeMethodDescriptionprotected void
finalize()
Deprecated, for removal: This API element is subject to removal in a future version.Finalization is deprecated and subject to removal in a future release.final Class
<?> getClass()
Returns the runtime class of thisObject
.final void
notify()
Wakes up a single thread that is waiting on this object's monitor.final void
Wakes up all threads that are waiting on this object's monitor.toString()
Returns a string representation of the object.final void
wait()
Causes the current thread to wait until it is awakened, typically by being notified or interrupted.final void
wait
(long timeoutMillis) Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.final void
wait
(long timeoutMillis, int nanos) Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.
-
Constructor Details
-
SerialDatalink
Constructs a newSerialDatalink
object from the givenjava.net.URL
object.- Parameters:
url
- theURL
to create theSerialDataLink
from- Throws:
SerialException
- if url parameter is a null
-
-
Method Details
-
getDatalink
Returns a new URL that is a copy of thisSerialDatalink
object.- Returns:
- a copy of this
SerialDatalink
object as aURL
object in the Java programming language. - Throws:
SerialException
- if theURL
object cannot be de-serialized
-
equals
Compares thisSerialDatalink
to the specified object. The result istrue
if and only if the argument is notnull
and is aSerialDatalink
object whose URL is identical to this object's URL -
hashCode
-
clone
-