public interface ODocumentSerializable
After serialization into document additional field CLASS_NAME
will be added. This
field contains value of class of original object.
During deserialization of embedded object if embedded document contains CLASS_NAME
field we try to find class with given name and only if this class implements ODocumentSerializable
interface it will be converted to the object. So it is pretty safe to use
field with CLASS_NAME
in ordinary documents if it is needed.
Class which implements this interface should have public no-arguments constructor.
Modifier and Type | Field and Description |
---|---|
static String |
CLASS_NAME |
Modifier and Type | Method and Description |
---|---|
void |
fromDocument(ODocument document) |
ODocument |
toDocument() |
static final String CLASS_NAME
Copyright © 2009–2020 OrientDB. All rights reserved.