|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.openjpa.util.Serialization
public class Serialization
Helper class to serialize and deserialize persistent objects, subtituting oids into the serialized stream and subtituting the persistent objects back during deserialization.
Nested Class Summary | |
---|---|
static class |
Serialization.ClassResolvingObjectInputStream
|
static class |
Serialization.PersistentObjectInputStream
Object input stream that replaces oids with their objects. |
static class |
Serialization.PersistentObjectOutputStream
Object output stream that replaces persistent objects with their oids. |
Constructor Summary | |
---|---|
Serialization()
|
Method Summary | |
---|---|
static java.lang.Object |
deserialize(byte[] bytes,
StoreContext ctx)
Deserialize an object value from the given bytes. |
static java.lang.Object |
deserialize(java.io.InputStream in,
StoreContext ctx)
Deserialize an object value from the given stream. |
static byte[] |
serialize(java.lang.Object val,
StoreContext ctx)
Serialize a value that might contain persistent objects. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Serialization()
Method Detail |
---|
public static byte[] serialize(java.lang.Object val, StoreContext ctx)
public static java.lang.Object deserialize(byte[] bytes, StoreContext ctx)
public static java.lang.Object deserialize(java.io.InputStream in, StoreContext ctx)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |