Class InstanceAuditHeaderMapping
java.lang.Object
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.mapping.AbstractMapping
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.mapping.InstanceAuditHeaderMapping
- Direct Known Subclasses:
ClassificationMapping,InstanceHeaderMapping
Maps the properties of InstanceAuditHeaders between persistence and objects.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic clojure.lang.IPersistentVectoraddToMap(clojure.lang.IPersistentMap doc, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceAuditHeader iah, String namespace) Translate the provided Egeria representation into a XTDB document map.static clojure.lang.IPersistentMapaddTypeDetailsToMap(clojure.lang.IPersistentMap doc, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceType type, String namespace) Translate the provided Egeria type information into a XTDB document map.static DatebuildDoc(xtdb.api.XtdbDocument.Builder builder, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceAuditHeader iah, String namespace) Translate the provided Egeria representation into a XTDB document.static org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceTypegetTypeFromInstance(clojure.lang.IPersistentMap doc, String namespace) Retrieve the instance type details from the provided XTDB document map.static booleanisKnownBaseProperty(String property) Check whether the specified property is a known base-level Instance property.Methods inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.mapping.AbstractMapping
getKeyword, getKeyword
-
Field Details
-
METADATA_COLLECTION_ID
-
METADATA_COLLECTION_NAME
-
CREATE_TIME
-
UPDATE_TIME
-
CURRENT_STATUS
-
STATUS_ON_DELETE
-
TYPE_DEF_GUIDS
-
TYPE_DEF_CATEGORY
-
VERSION
-
MAINTAINED_BY
-
UPDATED_BY
-
REPLICATED_BY
-
INSTANCE_PROVENANCE_TYPE
-
-
Method Details
-
isKnownBaseProperty
Check whether the specified property is a known base-level Instance property.- Parameters:
property- to check- Returns:
- boolean
-
buildDoc
public static Date buildDoc(xtdb.api.XtdbDocument.Builder builder, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceAuditHeader iah, String namespace) throws IOException Translate the provided Egeria representation into a XTDB document.- Parameters:
builder- for the XTDB documentiah- Egeria representation from which to mapnamespace- by which to qualify the properties- Returns:
- the latest change date in the header (updateTime or if empty createTime)
- Throws:
IOException- on any error serializing the provided values
-
addToMap
public static clojure.lang.IPersistentVector addToMap(clojure.lang.IPersistentMap doc, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceAuditHeader iah, String namespace) throws IOException Translate the provided Egeria representation into a XTDB document map.- Parameters:
doc- for the XTDB documentiah- Egeria representation from which to mapnamespace- by which to qualify the properties- Returns:
- a tuple containing the timestamp of the create / update followed by the updated document map itself
- Throws:
IOException- on any error serializing the provided values
-
addTypeDetailsToMap
public static clojure.lang.IPersistentMap addTypeDetailsToMap(clojure.lang.IPersistentMap doc, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceType type, String namespace) throws IOException Translate the provided Egeria type information into a XTDB document map.- Parameters:
doc- for the XTDB documenttype- to update into the documentnamespace- by which to qualify the properties- Returns:
- IPersistentMap containing the updated XTDB document
- Throws:
IOException- on any error serializing the provided values
-
getTypeFromInstance
public static org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.InstanceType getTypeFromInstance(clojure.lang.IPersistentMap doc, String namespace) throws IOException Retrieve the instance type details from the provided XTDB document map.- Parameters:
doc- for the XTDB documentnamespace- by which the properties are qualified- Returns:
- InstanceType
- Throws:
IOException- on any error deserializing the value
-