org.apache.openjpa.util
public class Serialization extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
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 and Description |
---|
Serialization() |
Modifier and Type | Method and Description |
---|---|
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.
|
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)