Class SerialRef

java.lang.Object
javax.sql.rowset.serial.SerialRef
All Implemented Interfaces:
Serializable, Cloneable, Ref

public class SerialRef
extends Object
implements Ref, Serializable, Cloneable
A serialized mapping of a Ref object, which is the mapping in the Java programming language of an SQL REF value.

The SerialRef class provides a constructor for creating a SerialRef instance from a Ref object and provides methods for getting and setting the Ref object.

Thread safety

A SerialRef is not safe for use by multiple concurrent threads. If a SerialRef is to be used by more than one thread then access to the SerialRef should be controlled by appropriate synchronization.
Since:
1.5
See Also:
Serialized Form
  • Constructor Summary

    Constructors 
    Constructor Description
    SerialRef​(Ref ref)
    Constructs a SerialRef object from the given Ref object.
  • Method Summary

    Modifier and Type Method Description
    Object clone()
    Returns a clone of this SerialRef.
    boolean equals​(Object obj)
    Compares this SerialRef to the specified object.
    String getBaseTypeName()
    Returns a string describing the base type name of the Ref.
    Object getObject()
    Returns an Object representing the SQL structured type to which this SerialRef object refers.
    Object getObject​(Map<String,​Class<?>> map)
    Returns an Object representing the SQL structured type to which this SerialRef object refers.
    int hashCode()
    Returns a hash code for this SerialRef.
    void setObject​(Object obj)
    Sets the SQL structured type that this SerialRef object references to the given Object object.

    Methods declared in class java.lang.Object

    finalize, getClass, notify, notifyAll, toString, wait, wait, wait