java.lang.Object | |
↳ | javax.sql.rowset.serial.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.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor for
SerialJavaObject helper class. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns an array of
Field objects that contains each
field of the object that this helper class is serializing. | |||||||||||
Returns an
Object that is a copy of this SerialJavaObject
object. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Constructor for SerialJavaObject
helper class.
obj | the Java Object to be serialized |
---|
SerialException | if the object is found to be unserializable |
---|
Returns an array of Field
objects that contains each
field of the object that this helper class is serializing.
Field
objectsSerialException | if an error is encountered accessing the serialized object |
---|
Returns an Object
that is a copy of this SerialJavaObject
object.
SerialJavaObject
object as an
Object
in the Java programming languageSerialException | if the instance is corrupt |
---|