This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.sql.rowset.serial
class SerialRef

java.lang.Object extended by 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.


Constructor Summary

          Constructs a SerialRef object from the given Ref object.
 
Method Summary
 String

          Returns a string describing the base type name of the Ref.
 Object

          Returns an Object representing the SQL structured type to which this SerialRef object refers.
 Object

          Returns an Object representing the SQL structured type to which this SerialRef object refers.
 void

          Sets the SQL structured type that this SerialRef object references to the given Object object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerialRef

public SerialRef(Ref ref)
          throws SerialException,
                 SQLException
Constructs a SerialRef object from the given Ref object.

Parameters:
ref - a Ref object; cannot be null
Throws:
SerialException - if an error occurs serializing the Ref object
SQLException - if a database access occurs; if ref is null; or if the Ref object returns a null value base type name.
Method Detail

getBaseTypeName

public String getBaseTypeName()
                       throws SerialException
Returns a string describing the base type name of the Ref.

Returns:
a string of the base type name of the Ref
Throws:
SerialException - in no Ref object has been set

getObject

public Object getObject()
                 throws SerialException
Returns an Object representing the SQL structured type to which this SerialRef object refers.

Returns:
an object instance resolved from the Ref reference
Throws:
SerialException - if an error is encountered in the reference resolution

getObject

public Object getObject(Map map)
                 throws SerialException
Returns an Object representing the SQL structured type to which this SerialRef object refers. The attributes of the structured type are mapped according to the given type map.

Parameters:
map - a java.util.Map object containing zero or more entries, with each entry consisting of 1) a String giving the fully qualified name of a UDT and 2) the Class object for the SQLData implementation that defines how the UDT is to be mapped
Returns:
an object instance resolved from the Ref reference and mapped according to the supplied type map
Throws:
SerialException - if an error is encountered in the reference resolution

setObject

public void setObject(Object obj)
               throws SerialException
Sets the SQL structured type that this SerialRef object references to the given Object object.

Parameters:
obj - an Object representing the SQL structured type to be referenced
Throws:
SerialException - if an error is encountered generating the the structured type referenced by this SerialRef object


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.