Class RelationshipMapping
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.RelationshipMapping
Maps the properties of Relationships between persistence and objects.
-
Field Summary
FieldsFields inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.mapping.InstanceHeaderMapping
RE_IDENTIFIED_FROM_GUIDFields 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 -
Constructor Summary
ConstructorsConstructorDescriptionRelationshipMapping(XTDBOMRSRepositoryConnector xtdbConnector, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship relationship) Construct a mapping from a Relationship (to map to a XTDB representation).RelationshipMapping(XTDBOMRSRepositoryConnector xtdbConnector, xtdb.api.XtdbDocument xtdbDoc, xtdb.api.IXtdbDatasource db) Construct a mapping from a XTDB map (to map to an Egeria representation). -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetReference(String guid) Retrieve the canonical reference to the relationship with the specified GUID.org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.RelationshiptoEgeria()Map from XTDB to Egeria.static clojure.lang.IPersistentMaptoMap(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship relationship) Translate the provided Egeria representation into a XTDB document map.Methods inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.mapping.InstanceHeaderMapping
getGuidReference, getGuidReference, toMap, toXTDB, trimGuidFromReferenceMethods inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.mapping.InstanceAuditHeaderMapping
addToMap, addTypeDetailsToMap, buildDoc, getTypeFromInstance, isKnownBasePropertyMethods inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.mapping.AbstractMapping
getKeyword, getKeyword
-
Field Details
-
INSTANCE_REF_PREFIX
- See Also:
-
RELATIONSHIP_PROPERTIES_NS
- See Also:
-
ENTITY_PROXIES
-
-
Constructor Details
-
RelationshipMapping
public RelationshipMapping(XTDBOMRSRepositoryConnector xtdbConnector, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship relationship) Construct a mapping from a Relationship (to map to a XTDB representation).- Parameters:
xtdbConnector- connectivity to XTDBrelationship- from which to map
-
RelationshipMapping
public RelationshipMapping(XTDBOMRSRepositoryConnector xtdbConnector, xtdb.api.XtdbDocument xtdbDoc, xtdb.api.IXtdbDatasource db) Construct a mapping from a XTDB map (to map to an Egeria representation).- Parameters:
xtdbConnector- connectivity to XTDBxtdbDoc- from which to mapdb- an open database connection for a point-in-time appropriate to the mapping
-
-
Method Details
-
toEgeria
public org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship toEgeria()Map from XTDB to Egeria.- Returns:
- EntityDetail
- See Also:
-
toMap
public static clojure.lang.IPersistentMap toMap(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Relationship relationship) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException, IOException Translate the provided Egeria representation into a XTDB document map.- Parameters:
relationship- to translate- Returns:
- IPersistentMap representing the XTDB document
- Throws:
org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException- on any errors identified within the metadata instanceIOException- on any error serializing the values
-
getReference
Retrieve the canonical reference to the relationship with the specified GUID.- Parameters:
guid- of the relationship to reference- Returns:
- String giving the XTDB reference to this relationship document
-