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

  • 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 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 Details

    • toEgeria

      public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail toEgeria()
      Map from XTDB to Egeria.
      Overrides:
      toEgeria in class EntitySummaryMapping
      Returns:
      EntityDetail
      See Also:
    • 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