Class AbstractTransactionFunction
java.lang.Object
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.txnfn.AbstractTransactionFunction
- Direct Known Subclasses:
AddEntity,AddEntityProxy,AddRelationship,ClassifyEntity,DeclassifyEntity,DeleteInstance,PurgeClassificationReferenceCopy,PurgeEntity,PurgeRelationship,ReHomeInstance,ReIdentifyInstance,ReLinkRelationship,RestoreInstance,ReTypeInstance,SaveClassificationReferenceCopy,SaveEntityReferenceCopy,SaveRelationshipReferenceCopy,UndoInstanceUpdate,UpdateInstanceProperties,UpdateInstanceStatus
Base class that all transaction functions should implement.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetGUID(clojure.lang.IPersistentMap instance) Retrieve the instance GUID from the provided metadata instance.static IntegergetInstanceProvenanceType(clojure.lang.IPersistentMap instance) Retrieve the instanceProvenanceType from the provided metadata instance.static StringgetMetadataCollectionId(clojure.lang.IPersistentMap instance) Retrieve the metadataCollectionId from the provided metadata instance.static org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefgetTypeDefForInstance(clojure.lang.IPersistentMap instance) Retrieve the type definition for the provided metadata instance.static StringgetTypeDefGUID(clojure.lang.IPersistentMap instance) Retrieve the type definition GUID from the provided metadata instance.
-
Constructor Details
-
AbstractTransactionFunction
public AbstractTransactionFunction()
-
-
Method Details
-
getTypeDefGUID
Retrieve the type definition GUID from the provided metadata instance.- Parameters:
instance- of metadata- Returns:
- String unique identifier of the type definition for the metadata instance
-
getTypeDefForInstance
public static org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDef getTypeDefForInstance(clojure.lang.IPersistentMap instance) Retrieve the type definition for the provided metadata instance.- Parameters:
instance- of metadata- Returns:
- TypeDef that defines the metadata instance
-
getGUID
Retrieve the instance GUID from the provided metadata instance.- Parameters:
instance- of metadata- Returns:
- String unique identifier of the metadata instance
-
getMetadataCollectionId
Retrieve the metadataCollectionId from the provided metadata instance.- Parameters:
instance- of metadata- Returns:
- String unique identifier of the metadata instance's metadataCollectionId
-
getInstanceProvenanceType
Retrieve the instanceProvenanceType from the provided metadata instance.- Parameters:
instance- of metadata- Returns:
- Integer unique ordinal of the metadata instance's instanceProvenanceType
-