public abstract class OSerializationHelper extends Object
Modifier and Type | Class and Description |
---|---|
static class |
OSerializationHelper.ConvertProxy
Store information on how to convert a value back to its original form.
|
Modifier and Type | Field and Description |
---|---|
static String |
BINARY_WRAPPER_CLASSNAME
Binary wrapper class name
|
static String |
BINARY_WRAPPER_FIELD
Binary wrapper class field name
|
static String |
FIELD_COLLECTION_TYPE
Field holding the collection type
|
static String |
FIELD_CONVERT_ID
Field specifying the converter ID
|
static String |
FIELD_CRS_ID
Field specifying the CRS ID
|
static String |
FIELD_SERIALIZATION_TYPE
Field specifying the serialization type
|
static String |
FIELD_STRING_VALUE
Field specifying the string value
|
static String |
FIELD_VALUES
Field holding the values of a collection
|
Constructor and Description |
---|
OSerializationHelper() |
Modifier and Type | Method and Description |
---|---|
static Object |
convertForDB(Object value)
Prepare a value not supported as field in OrientDB so it can be stored in
the database.
|
static Object |
convertFromDB(Object value,
OGroup parent,
QName childName)
Convert a value received from the database, e.g.
|
static Object |
deserialize(com.orientechnologies.orient.core.record.impl.ODocument doc,
OGroup parent,
QName childName)
Deserialize a serialized value wrapped in the given document.
|
static com.orientechnologies.orient.core.record.impl.ODocument |
serialize(Object value)
Serialize and/or wrap a value not supported as field in OrientDB so it
can be stored in the database.
|
public static final String BINARY_WRAPPER_CLASSNAME
public static final String BINARY_WRAPPER_FIELD
public static final String FIELD_SERIALIZATION_TYPE
public static final String FIELD_CRS_ID
public static final String FIELD_CONVERT_ID
public static final String FIELD_STRING_VALUE
public static final String FIELD_COLLECTION_TYPE
public static final String FIELD_VALUES
public static Object convertForDB(Object value)
value
- the value to convertpublic static com.orientechnologies.orient.core.record.impl.ODocument serialize(Object value)
value
- the value to serializepublic static Object convertFromDB(Object value, OGroup parent, QName childName)
ODocument
s to
Instance
s, Group
s or unwraps contained values.value
- the valueparent
- the parent groupchildName
- the name of the child the value is associated topublic static Object deserialize(com.orientechnologies.orient.core.record.impl.ODocument doc, OGroup parent, QName childName)
doc
- the documentparent
- the parent groupchildName
- the name of the child the value is associated toBuild 2013-10-07_11-27-38
Revision 99b27713a799a59a21b0b166eaaea8aaefbf125a