Package Summary  Overview Summary

class:SerialJavaObject [NONE]

public class SerialJavaObject
extends java.lang.Object
implements java.io.Serializable, java.lang.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.

See Also:
Serialized Form

constructor:SerialJavaObject(java.lang.Object) [NONE]

SerialJavaObject

public SerialJavaObject(java.lang.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:getObject() [NONE]

getObject

public java.lang.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

method:getFields() [NONE]

getFields

public java.lang.reflect.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

method:equals(java.lang.Object) [NONE]

equals

public boolean equals(java.lang.Object anObject)
Compares this SerialJavaObject to the specified object. The result is true if and only if the argument is not null and is a SerialJavaObject object that is identical to this object

Overrides:
equals in class java.lang.Object
Parameters:
anObject - The object to compare this SerialJavaObject against
Returns:
true if the given object represents a SerialJavaObject equivalent to this SerialJavaObject, false otherwise

method:hashCode() [NONE]

hashCode

public int hashCode()
Returns a hash code for this SerialJavaObject. The hash code for a SerialJavaObject object is taken as the hash code of the Object it stores

Overrides:
hashCode in class java.lang.Object
Returns:
a hash code value for this object.