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 SerialJavaObject

java.lang.Object extended by javax.sql.rowset.serial.SerialJavaObject
All Implemented Interfaces:
Serializable, Cloneable

public class SerialJavaObject
extends Object
implements Serializable, Cloneable

A serializable mapping in the Java programming language of an SQL JAVA_OBJECT value. Assuming the Java object implements the Serializable interface, this class simply wraps the serialization process.

If however, the serialization is not possible because the Java object is not immediately serializable, this class will attempt to serialize all non-static members to permit the object state to be serialized. Static or transient fields cannot be serialized; an attempt to serialize them will result in a SerialException object being thrown.


Constructor Summary

          Constructor for SerialJavaObject helper class.
 
Method Summary
 Field[]

          Returns an array of Field objects that contains each field of the object that this helper class is serializing.
 Object

          Returns an Object that is a copy of this SerialJavaObject object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SerialJavaObject

public SerialJavaObject(Object obj)
                 throws SerialException
Constructor for SerialJavaObject helper class.

Parameters:
obj - the Java Object to be serialized
Throws:
SerialException - if the object is found to be unserializable
Method Detail

getFields

public Field[] getFields()
                  throws SerialException
Returns an array of Field objects that contains each field of the object that this helper class is serializing.

Returns:
an array of Field objects
Throws:
SerialException - if an error is encountered accessing the serialized object

getObject

public Object getObject()
                 throws SerialException
Returns an Object that is a copy of this SerialJavaObject object.

Returns:
a copy of this SerialJavaObject object as an Object in the Java programming language
Throws:
SerialException - if the instance is corrupt


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/.