Class InstanceHeaderMapping
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
- Direct Known Subclasses:
EntitySummaryMapping,RelationshipMapping
Maps the properties of InstanceHeaders between persistence and objects.
(Note that this is the first level of mapping that can be instantiated, as it is the first level
in which a XTDB ID (GUID) is mapped.)
-
Field Summary
FieldsFields 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 -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetGuidReference(XTDBOMRSRepositoryConnector xtdbConnector, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceHeader ih) Translate the provided InstanceHeader information into a XTDB reference to the GUID of the instance.static StringgetGuidReference(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceHeader ih) Translate the provided InstanceHeader information into a XTDB reference to the GUID of the instance.static clojure.lang.IPersistentMaptoMap(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceHeader header) Translate the provided Egeria representation into a XTDB document map.xtdb.api.XtdbDocumenttoXTDB()Map from Egeria to XTDB.static StringtrimGuidFromReference(String reference) Retrieve only the GUID portion of a XTDB reference.Methods 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
-
RE_IDENTIFIED_FROM_GUID
-
-
Method Details
-
toXTDB
public xtdb.api.XtdbDocument toXTDB()Map from Egeria to XTDB.- Returns:
- XtdbDocument
- See Also:
-
InstanceHeaderMapping(XTDBOMRSRepositoryConnector, InstanceHeader)
-
toMap
public static clojure.lang.IPersistentMap toMap(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceHeader header) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException, IOException Translate the provided Egeria representation into a XTDB document map.- Parameters:
header- 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
-
getGuidReference
public static String getGuidReference(XTDBOMRSRepositoryConnector xtdbConnector, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceHeader ih) Translate the provided InstanceHeader information into a XTDB reference to the GUID of the instance.- Parameters:
xtdbConnector- connectivity to the repositoryih- to translate- Returns:
- String for the XTDB reference
-
getGuidReference
public static String getGuidReference(org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceHeader ih) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException Translate the provided InstanceHeader information into a XTDB reference to the GUID of the instance.- Parameters:
ih- to translate- Returns:
- String for the XTDB reference
- Throws:
org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException- on any error translating the GUID
-
trimGuidFromReference
Retrieve only the GUID portion of a XTDB reference.- Parameters:
reference- from which to trim the GUID- Returns:
- String of only the GUID portion of the reference
-