Class PropertyElementManagement
java.lang.Object
org.gcube.informationsystem.resourceregistry.persistence.orientdb.base.PropertyElementManagement
- Author:
- Luca Frosini (ISTI - CNR)
-
Field Summary
FieldsModifier and TypeFieldDescriptionKeys that should be ignored during property mapping.Prefixes of keys that should be ignored during property mapping. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.gcube.com.fasterxml.jackson.databind.JsonNodegetJsonNode(com.orientechnologies.orient.core.record.impl.ODocument oDocument) Converts anODocumentto aJsonNoderepresenting properties.static com.orientechnologies.orient.core.record.impl.ODocumentgetPropertyDocument(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNodeOrig) Converts aJsonNoderepresenting properties to anODocument.
-
Field Details
-
PROPERTY_IGNORE_KEYS
Keys that should be ignored during property mapping. -
PROPERTY_IGNORE_START_WITH_KEYS
Prefixes of keys that should be ignored during property mapping.
-
-
Constructor Details
-
PropertyElementManagement
public PropertyElementManagement()
-
-
Method Details
-
getPropertyDocument
public static com.orientechnologies.orient.core.record.impl.ODocument getPropertyDocument(org.gcube.com.fasterxml.jackson.databind.JsonNode jsonNodeOrig) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException Converts aJsonNoderepresenting properties to anODocument.- Parameters:
jsonNodeOrig- the original JSON node to convert- Returns:
- the converted
ODocument - Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- if the conversion fails
-
getJsonNode
public static org.gcube.com.fasterxml.jackson.databind.JsonNode getJsonNode(com.orientechnologies.orient.core.record.impl.ODocument oDocument) throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException Converts anODocumentto aJsonNoderepresenting properties.- Parameters:
oDocument- the document to convert- Returns:
- the converted
JsonNode - Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- if the conversion fails
-