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

public abstract class AbstractTransactionFunction extends Object
Base class that all transaction functions should implement.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    getGUID(clojure.lang.IPersistentMap instance)
    Retrieve the instance GUID from the provided metadata instance.
    static Integer
    getInstanceProvenanceType(clojure.lang.IPersistentMap instance)
    Retrieve the instanceProvenanceType from the provided metadata instance.
    static String
    getMetadataCollectionId(clojure.lang.IPersistentMap instance)
    Retrieve the metadataCollectionId from the provided metadata instance.
    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.
    static String
    getTypeDefGUID(clojure.lang.IPersistentMap instance)
    Retrieve the type definition GUID from the provided metadata instance.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AbstractTransactionFunction

      public AbstractTransactionFunction()
  • Method Details

    • getTypeDefGUID

      public static String getTypeDefGUID(clojure.lang.IPersistentMap instance)
      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

      public static String getGUID(clojure.lang.IPersistentMap instance)
      Retrieve the instance GUID from the provided metadata instance.
      Parameters:
      instance - of metadata
      Returns:
      String unique identifier of the metadata instance
    • getMetadataCollectionId

      public static String getMetadataCollectionId(clojure.lang.IPersistentMap instance)
      Retrieve the metadataCollectionId from the provided metadata instance.
      Parameters:
      instance - of metadata
      Returns:
      String unique identifier of the metadata instance's metadataCollectionId
    • getInstanceProvenanceType

      public static Integer getInstanceProvenanceType(clojure.lang.IPersistentMap instance)
      Retrieve the instanceProvenanceType from the provided metadata instance.
      Parameters:
      instance - of metadata
      Returns:
      Integer unique ordinal of the metadata instance's instanceProvenanceType