Package org.apache.openjpa.util
Class Serialization
java.lang.Object
org.apache.openjpa.util.Serialization
Helper class to serialize and deserialize persistent objects,
subtituting oids into the serialized stream and subtituting the persistent
objects back during deserialization.
- Since:
- 0.3.3
- Author:
- Abe White
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
Object input stream that replaces oids with their objects.static class
Object output stream that replaces persistent objects with their oids. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Object
deserialize
(byte[] bytes, StoreContext ctx) Deserialize an object value from the given bytes.static Object
deserialize
(InputStream in, StoreContext ctx) Deserialize an object value from the given stream.static byte[]
serialize
(Object val, StoreContext ctx) Serialize a value that might contain persistent objects.
-
Constructor Details
-
Serialization
public Serialization()
-
-
Method Details
-
serialize
Serialize a value that might contain persistent objects. Replaces persistent objects with their oids. -
deserialize
Deserialize an object value from the given bytes. -
deserialize
Deserialize an object value from the given stream.
-