Class EntityDetailMapping
java.lang.Object
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.mapping.AbstractMapping
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.mapping.InstanceAuditHeaderMapping
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.mapping.InstanceHeaderMapping
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.mapping.EntitySummaryMapping
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.mapping.EntityDetailMapping
Maps the properties of EntityDetails between persistence and objects.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.mapping.EntitySummaryMapping
INSTANCE_REF_PREFIX, N_CLASSIFICATIONS
Fields inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.mapping.InstanceHeaderMapping
instanceHeader, RE_IDENTIFIED_FROM_GUID, xtdbDoc
Fields inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.mapping.InstanceAuditHeaderMapping
CREATE_TIME, CURRENT_STATUS, INSTANCE_PROVENANCE_TYPE, MAINTAINED_BY, METADATA_COLLECTION_ID, METADATA_COLLECTION_NAME, REPLICATED_BY, STATUS_ON_DELETE, TYPE_DEF_CATEGORY, TYPE_DEF_GUIDS, UPDATE_TIME, UPDATED_BY, VERSION
Fields inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.mapping.AbstractMapping
mapper, xtdbConnector
-
Constructor Summary
ConstructorDescriptionEntityDetailMapping
(XTDBOMRSRepositoryConnector xtdbConnector, EntityDetail entityDetail) Construct a mapping from an EntityDetail (to map to a XTDB representation).EntityDetailMapping
(XTDBOMRSRepositoryConnector xtdbConnector, xtdb.api.XtdbDocument xtdbDoc) Construct a mapping from a XTDB map (to map to an Egeria representation). -
Method Summary
Modifier and TypeMethodDescriptionprotected void
fromDoc()
Translate the provided XTDB representation into an Egeria representation.static EntityDetail
fromMap
(clojure.lang.IPersistentMap doc) Translate the provided XTDB representation into an Egeria representation.static String
getReference
(String guid) Translate the provided GUID into a XTDB reference.protected xtdb.api.XtdbDocument.Builder
toDoc()
Translate the provided Egeria representation into a XTDB document.toEgeria()
Map from XTDB to Egeria.Methods inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.mapping.EntitySummaryMapping
fromMap
Methods inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.mapping.InstanceHeaderMapping
fromMap, getGuidReference, getGuidReference, getReference, toMap, toXTDB, trimGuidFromReference
Methods inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.mapping.InstanceAuditHeaderMapping
addToMap, addTypeDetailsToMap, buildDoc, buildDoc, fromDoc, fromDoc, fromMap, getTypeFromInstance, isKnownBaseProperty
Methods inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.mapping.AbstractMapping
getDeserializedValue, getDeserializedValue, getEmbeddedSerializedForm, getEmbeddedSerializedForm, getKeyword, getKeyword
-
Field Details
-
ENTITY_PROPERTIES_NS
- See Also:
-
-
Constructor Details
-
EntityDetailMapping
Construct a mapping from an EntityDetail (to map to a XTDB representation).- Parameters:
xtdbConnector
- connectivity to XTDBentityDetail
- from which to map
-
EntityDetailMapping
public EntityDetailMapping(XTDBOMRSRepositoryConnector xtdbConnector, xtdb.api.XtdbDocument xtdbDoc) Construct a mapping from a XTDB map (to map to an Egeria representation).- Parameters:
xtdbConnector
- connectivity to XTDBxtdbDoc
- from which to map
-
-
Method Details
-
toEgeria
Map from XTDB to Egeria.- Overrides:
toEgeria
in classEntitySummaryMapping
- Returns:
- EntityDetail
- See Also:
-
toDoc
protected xtdb.api.XtdbDocument.Builder toDoc()Translate the provided Egeria representation into a XTDB document.- Overrides:
toDoc
in classEntitySummaryMapping
- Returns:
- XtdbDocument.Builder from which to build the document
-
fromDoc
protected void fromDoc()Translate the provided XTDB representation into an Egeria representation.- Overrides:
fromDoc
in classEntitySummaryMapping
-
fromMap
public static EntityDetail fromMap(clojure.lang.IPersistentMap doc) throws IOException, InvalidParameterException Translate the provided XTDB representation into an Egeria representation.- Parameters:
doc
- from which to map- Returns:
- EntityDetail the Egeria representation of the XTDB document
- Throws:
IOException
- on any issue deserializing valuesInvalidParameterException
- for any unmapped properties
-
getReference
Translate the provided GUID into a XTDB reference.- Parameters:
guid
- to translate- Returns:
- String reference for XTDB
-