|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.esdihumboldt.hale.common.instance.orient.internal.OSerializationHelper
public abstract class OSerializationHelper
Serialization helper for storing values not support by OrientDB. Serializes geometries as WKB and holds a runtime cache for CRSs.
Nested Class Summary | |
---|---|
static class |
OSerializationHelper.ConvertProxy
Store information on how to convert a value back to its original form. |
Field Summary | |
---|---|
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 Summary | |
---|---|
OSerializationHelper()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public OSerializationHelper()
Method Detail |
---|
public static Object convertForDB(Object value)
value
- the value to convert
public static com.orientechnologies.orient.core.record.impl.ODocument serialize(Object value)
value
- the value to serialize
public 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 to
public 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 to
|
Humboldt Alignment Editor 2.5.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |