Class EntityDetailMapping


  • public class EntityDetailMapping
    extends EntitySummaryMapping
    Maps the properties of EntityDetails between persistence and objects.
    • Constructor Detail

      • 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 XTDB
        entityDetail - 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 XTDB
        xtdbDoc - from which to map
    • Method Detail

      • toDoc

        protected xtdb.api.XtdbDocument.Builder toDoc()
        Translate the provided Egeria representation into a XTDB document.
        Overrides:
        toDoc in class EntitySummaryMapping
        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 class EntitySummaryMapping
      • 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 values
        org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException - for any unmapped properties
      • getReference

        public static String getReference​(String guid)
        Translate the provided GUID into a XTDB reference.
        Parameters:
        guid - to translate
        Returns:
        String reference for XTDB