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.
Modifier and Type | Field and Description |
---|---|
pack-priv Vector | chain
A container for the warnings issued on this |
private transient Field[] | fields
Placeholder for all fields in the |
private Object | obj
Placeholder for object to be serialized. |
pack-priv static final long | serialVersionUID
The identifier that assists in the serialization of this
|
Access | Constructor and Description |
---|---|
public | SerialJavaObject(Object
the Java obj)Object to be serializedConstructor for |
Modifier and Type | Method and Description |
---|---|
public Object | Returns: a clone of this SerialJavaObjectOverrides java. SerialJavaObject .
|
public boolean | Returns: true if the given object represents a SerialJavaObject
equivalent to this SerialJavaObject, false otherwiseThe object to compare this o)SerialJavaObject againstOverrides java. |
public Field[] | Returns: an array ofField objectsReturns an array of |
public Object | Returns: a copy of thisSerialJavaObject object as an
Object in the Java programming languageReturns an |
public int | Returns: a hash code value for this object.Overrides java. |
private static boolean | |
private void | readObject(ObjectInputStream
the s)ObjectInputStream to read from.readObject is called to restore the state of the |
private void | |
private void | writeObject(ObjectOutputStream
the s)ObjectOutputStream to write to.writeObject is called to save the state of the |
chain | back to summary |
---|---|
pack-priv Vector<RowSetWarning> chain A container for the warnings issued on this |
fields | back to summary |
---|---|
private transient Field[] fields Placeholder for all fields in the |
obj | back to summary |
---|---|
private Object obj Placeholder for object to be serialized.
|
serialVersionUID | back to summary |
---|---|
pack-priv static final long serialVersionUID The identifier that assists in the serialization of this
|
SerialJavaObject | back to summary |
---|---|
public SerialJavaObject(Object obj) throws SerialException Constructor for
|
clone | back to summary |
---|---|
public Object clone() Overrides java. Returns a clone of this
|
equals | back to summary |
---|---|
public boolean equals(Object o) Overrides java. Compares this SerialJavaObject to the specified object.
The result is
|
getFields | back to summary |
---|---|
public Field[] getFields() throws SerialException Returns an array of
|
getObject | back to summary |
---|---|
public Object getObject() throws SerialException Returns an
|
hashCode | back to summary |
---|---|
public int hashCode() Overrides java. Returns a hash code for this SerialJavaObject. The hash code for a
|
hasStaticFields | back to summary |
---|---|
private static boolean hasStaticFields(Field[] fields) |
readObject | back to summary |
---|---|
private void readObject(ObjectInputStream s) throws IOException, ClassNotFoundException readObject is called to restore the state of the
|
setWarning | back to summary |
---|---|
private void setWarning(RowSetWarning e) Registers the given warning. |
writeObject | back to summary |
---|---|
private void writeObject(ObjectOutputStream s) throws IOException writeObject is called to save the state of the
|