| 
 | Java™ Platform Standard Ed. 6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.sql.rowset.serial.SerialJavaObject
public class SerialJavaObject
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 | |
|---|---|
| SerialJavaObject(Object obj)Constructor for SerialJavaObjecthelper class. | |
| Method Summary | |
|---|---|
|  Field[] | getFields()Returns an array of Fieldobjects that contains each
 field of the object that this helper class is serializing. | 
|  Object | getObject()Returns an Objectthat is a copy of thisSerialJavaObjectobject. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public SerialJavaObject(Object obj)
                 throws SerialException
SerialJavaObject helper class.
 
obj - the Java Object to be serialized
SerialException - if the object is found
 to be unserializable| Method Detail | 
|---|
public Object getObject()
                 throws SerialException
Object that is a copy of this SerialJavaObject 
 object.
SerialJavaObject object as an
         Object in the Java programming language
SerialException - if the instance is corrupt
public Field[] getFields()
                  throws SerialException
Field objects that contains each
 field of the object that this helper class is serializing.
Field objects
SerialException - if an error is encountered accessing
 the serialized objectClass.getFields()| 
 | Java™ Platform Standard Ed. 6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 1993, 2015, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.