Class SaveClassificationReferenceCopyEntityDetail


public class SaveClassificationReferenceCopyEntityDetail extends SaveClassificationReferenceCopy
Transaction function for adding a reference copy classification.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final clojure.lang.Keyword
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    SaveClassificationReferenceCopyEntityDetail(Long txId, String entityGUID, clojure.lang.PersistentHashMap existing, clojure.lang.PersistentHashMap entity, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification classification, String homeMetadataCollectionId)
    Constructor used to execute the transaction function.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    create(xtdb.api.tx.Transaction.Builder tx)
    Create the transaction function within XTDB.
    clojure.lang.IPersistentMap
    doc()
    Interface that returns the updated document to write-back from the transaction.
    static void
    transact(XTDBOMRSRepositoryConnector xtdb, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail toStoreAgainst, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification classification)
    Create the provided classification in the XTDB repository by pushing down the transaction.

    Methods inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.txnfn.AbstractTransactionFunction

    getGUID, getInstanceProvenanceType, getMetadataCollectionId, getTypeDefForInstance, getTypeDefGUID

    Methods inherited from class java.lang.Object

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

    • FUNCTION_NAME

      public static final clojure.lang.Keyword FUNCTION_NAME
  • Constructor Details

    • SaveClassificationReferenceCopyEntityDetail

      public SaveClassificationReferenceCopyEntityDetail(Long txId, String entityGUID, clojure.lang.PersistentHashMap existing, clojure.lang.PersistentHashMap entity, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification classification, String homeMetadataCollectionId) throws Exception
      Constructor used to execute the transaction function.
      Parameters:
      txId - the transaction ID of this function invocation
      entityGUID - unique identifier of the existing entity
      existing - the existing entity in XT, if any
      entity - the entity against which to apply the classification
      classification - the classification to persist as a reference copy
      homeMetadataCollectionId - the metadataCollectionId of the repository where the transaction is running
      Throws:
      Exception - on any error
  • Method Details

    • transact

      public static void transact(XTDBOMRSRepositoryConnector xtdb, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.EntityDetail toStoreAgainst, org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification classification) throws org.odpi.openmetadata.repositoryservices.ffdc.exception.EntityConflictException, org.odpi.openmetadata.repositoryservices.ffdc.exception.TypeErrorException, org.odpi.openmetadata.repositoryservices.ffdc.exception.PropertyErrorException, org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException, org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException
      Create the provided classification in the XTDB repository by pushing down the transaction.
      Parameters:
      xtdb - connectivity
      toStoreAgainst - the entity against which to persist the classification
      classification - to persist as a reference copy
      Throws:
      org.odpi.openmetadata.repositoryservices.ffdc.exception.EntityConflictException - the new entity conflicts with an existing entity
      org.odpi.openmetadata.repositoryservices.ffdc.exception.TypeErrorException - the requested type is not known or not supported
      org.odpi.openmetadata.repositoryservices.ffdc.exception.PropertyErrorException - one or more of the requested properties are not defined or have different characteristics in the TypeDef for this classification type
      org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException - one of the parameters is invalid or null
      org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException - on any other error
    • doc

      public clojure.lang.IPersistentMap doc()
      Interface that returns the updated document to write-back from the transaction.
      Returns:
      IPersistentMap giving the updated document in its entirety
    • create

      public static void create(xtdb.api.tx.Transaction.Builder tx)
      Create the transaction function within XTDB.
      Parameters:
      tx - transaction through which to create the function