|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.sql.rowset.serial.SerialRef
public class SerialRef
A serializable mapping between the SQL REF type and the Java programming language.
The SerialRef class provides a constructor for
creating a SerialRef instance from a Ref
type, and provides methods for gettinga nd setting the Ref object
type.
| Constructor Summary | |
|---|---|
SerialRef(java.sql.Ref ref)
Constructs the SerialRef object given any Ref
object instance. |
|
| Method Summary | |
|---|---|
java.lang.String |
getBaseTypeName()
Returns a string describing the base type name of the Ref. |
java.lang.Object |
getObject()
Returns an object resolved from the stored Ref
reference. |
java.lang.Object |
getObject(java.util.Map map)
Returns an object mapped according to the supplied type mapping from the resolved Ref reference. |
void |
setObject(java.lang.Object obj)
Set object to be referenced. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SerialRef(java.sql.Ref ref)
throws SerialException,
java.sql.SQLException
SerialRef object given any Ref
object instance.
ref - a Ref object instance; cannot be null
java.sql.SQLException - if a database access occurs or if the ref
value is null.
SerialException - if an error occurs serializing the Ref
object.| Method Detail |
|---|
public java.lang.String getBaseTypeName()
throws SerialException
Ref.
getBaseTypeName in interface java.sql.RefSerialException - in no Ref object has been set
public java.lang.Object getObject(java.util.Map map)
throws SerialException
Ref reference.
getObject in interface java.sql.Refmap - 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
SerialException - if an error is encountered in the reference
resolution
public java.lang.Object getObject()
throws SerialException
Ref
reference.
getObject in interface java.sql.RefSerialException - if an error is encounter in the reference
resolution
public void setObject(java.lang.Object obj)
throws SerialException
setObject in interface java.sql.Refobj - object instance to be referenced.
SerialException - if an error is encountered generating the
the reference for this object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||