Class EntityDetailMapping
java.lang.Object
org.odpi.egeria.connectors.juxt.xtdb.mapping.AbstractMapping
org.odpi.egeria.connectors.juxt.xtdb.mapping.InstanceAuditHeaderMapping
org.odpi.egeria.connectors.juxt.xtdb.mapping.InstanceHeaderMapping
org.odpi.egeria.connectors.juxt.xtdb.mapping.EntitySummaryMapping
org.odpi.egeria.connectors.juxt.xtdb.mapping.EntityDetailMapping
Maps the properties of EntityDetails between persistence and objects.
-
Field Summary
FieldsFields inherited from class org.odpi.egeria.connectors.juxt.xtdb.mapping.EntitySummaryMapping
INSTANCE_REF_PREFIX, N_CLASSIFICATIONSFields inherited from class org.odpi.egeria.connectors.juxt.xtdb.mapping.InstanceHeaderMapping
instanceHeader, RE_IDENTIFIED_FROM_GUID, xtdbDocFields inherited from class org.odpi.egeria.connectors.juxt.xtdb.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, VERSIONFields inherited from class org.odpi.egeria.connectors.juxt.xtdb.mapping.AbstractMapping
mapper, xtdbConnector -
Constructor Summary
ConstructorsConstructorDescriptionEntityDetailMapping(XtdbOMRSRepositoryConnector xtdbConnector, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.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 voidfromDoc()Translate the provided XTDB representation into an Egeria representation.static org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetailfromMap(clojure.lang.IPersistentMap doc) Translate the provided XTDB representation into an Egeria representation.static StringgetReference(String guid) Translate the provided GUID into a XTDB reference.protected xtdb.api.XtdbDocument.BuildertoDoc()Translate the provided Egeria representation into a XTDB document.org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetailtoEgeria()Map from XTDB to Egeria.Methods inherited from class org.odpi.egeria.connectors.juxt.xtdb.mapping.EntitySummaryMapping
fromMapMethods inherited from class org.odpi.egeria.connectors.juxt.xtdb.mapping.InstanceHeaderMapping
fromMap, getGuidReference, getGuidReference, getReference, toMap, toXTDB, trimGuidFromReferenceMethods inherited from class org.odpi.egeria.connectors.juxt.xtdb.mapping.InstanceAuditHeaderMapping
addToMap, addTypeDetailsToMap, buildDoc, buildDoc, fromDoc, fromDoc, fromMap, getTypeFromInstance, isKnownBasePropertyMethods inherited from class org.odpi.egeria.connectors.juxt.xtdb.mapping.AbstractMapping
getDeserializedValue, getDeserializedValue, getEmbeddedSerializedForm, getEmbeddedSerializedForm, getKeyword, getKeyword
-
Field Details
-
ENTITY_PROPERTIES_NS
- See Also:
-
-
Constructor Details
-
EntityDetailMapping
public EntityDetailMapping(XtdbOMRSRepositoryConnector xtdbConnector, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail entityDetail) 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
public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail toEgeria()Map from XTDB to Egeria.- Overrides:
toEgeriain classEntitySummaryMapping- Returns:
- EntityDetail
- See Also:
-
toDoc
protected xtdb.api.XtdbDocument.Builder toDoc()Translate the provided Egeria representation into a XTDB document.- Overrides:
toDocin classEntitySummaryMapping- Returns:
- XtdbDocument.Builder from which to build the document
-
fromDoc
protected void fromDoc()Translate the provided XTDB representation into an Egeria representation.- Overrides:
fromDocin classEntitySummaryMapping
-
fromMap
public static org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail fromMap(clojure.lang.IPersistentMap doc) throws IOException, org.odpi.openmetadata.repositoryservices.ffdc.exception.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 valuesorg.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException- for any unmapped properties
-
getReference
Translate the provided GUID into a XTDB reference.- Parameters:
guid- to translate- Returns:
- String reference for XTDB
-