Serializable
, Cloneable
public class SerialDatalink extends Object implements Serializable, Cloneable
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);
Constructor | Description |
---|---|
SerialDatalink |
Constructs a new SerialDatalink object from the given java.net.URL object. |
Modifier and Type | Method | Description |
---|---|---|
Object |
clone() |
Returns a clone of this SerialDatalink . |
boolean |
equals |
Compares this SerialDatalink to the specified object. |
URL |
getDatalink() |
Returns a new URL that is a copy of this SerialDatalink object. |
int |
hashCode() |
Returns a hash code for this SerialDatalink . |
public SerialDatalink(URL url) throws SerialException
SerialDatalink
object from the given java.net.URL
object.url
- the URL
to create the SerialDataLink
fromSerialException
- if url parameter is a nullpublic URL getDatalink() throws SerialException
SerialDatalink
object.SerialDatalink
object as a URL
object in the Java programming language.SerialException
- if the URL
object cannot be de-serializedpublic boolean equals(Object obj)
SerialDatalink
to the specified object. The result is true
if and only if the argument is not null
and is a SerialDatalink
object whose URL is identical to this object's URLpublic int hashCode()
SerialDatalink
. The hash code for a SerialDatalink
object is taken as the hash code of the URL
it storespublic Object clone()
SerialDatalink
.
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.sql.rowset/javax/sql/rowset/serial/SerialDatalink.html