APIdia Launch Partner
Top Description Fields Constructors Methods
javax.sql.rowset.serial

public Class SerialDatalink

extends Object
implements Serializable, Cloneable
Class Inheritance
All Implemented Interfaces
java.lang.Cloneable, java.io.Serializable
Imports
java.sql.*, java.io.*, java.net.URL

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

Field Summary

Modifier and TypeField and Description
private int
baseType

The SQL type of the elements in this SerialDatalink object.

private String
baseTypeName

The type name used by the DBMS for the elements in the SQL DATALINK value that this SerialDatalink object represents.

pack-priv static final long
serialVersionUID

The identifier that assists in the serialization of this SerialDatalink object.

private URL
url

The extracted URL field retrieved from the DATALINK field.

Constructor Summary

AccessConstructor and Description

Method Summary

Modifier and TypeMethod and Description
public Object

Returns:

a clone of this SerialDatalink
clone
()

Overrides java.lang.Object.clone.

Returns a clone of this SerialDatalink.

public boolean

Returns:

true if the given object represents a SerialDatalink equivalent to this SerialDatalink, false otherwise
equals
(Object
The object to compare this SerialDatalink against
obj
)

Overrides java.lang.Object.equals.

Compares this SerialDatalink to the specified object.

public int

Returns:

a hash code value for this object.
hashCode
()

Overrides java.lang.Object.hashCode.

Returns a hash code for this SerialDatalink.

Inherited from java.lang.Object:
finalizegetClassnotifynotifyAlltoStringwaitwaitwait

Field Detail

baseTypeback to summary
private int baseType

The SQL type of the elements in this SerialDatalink object. The type is expressed as one of the constants from the class java.sql.Types.

baseTypeNameback to summary
private String baseTypeName

The type name used by the DBMS for the elements in the SQL DATALINK value that this SerialDatalink object represents.

serialVersionUIDback to summary
pack-priv static final long serialVersionUID

The identifier that assists in the serialization of this SerialDatalink object.

urlback to summary
private URL url

The extracted URL field retrieved from the DATALINK field.

Constructor Detail

Method Detail

cloneback to summary
public Object clone()

Overrides java.lang.Object.clone.

Returns a clone of this SerialDatalink.

Returns:Object

a clone of this SerialDatalink

equalsback to summary
public boolean equals(Object obj)

Overrides java.lang.Object.equals.

Compares this 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 URL

Parameters
obj:Object

The object to compare this SerialDatalink against

Returns:boolean

true if the given object represents a SerialDatalink equivalent to this SerialDatalink, false otherwise

hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Returns a hash code for this SerialDatalink. The hash code for a SerialDatalink object is taken as the hash code of the URL it stores

Returns:int

a hash code value for this object.