java.lang.Object
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.txnfn.AbstractTransactionFunction
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.txnfn.ReIdentifyInstance
Direct Known Subclasses:
ReIdentifyEntity, ReIdentifyRelationship

public abstract class ReIdentifyInstance extends AbstractTransactionFunction
Base transaction function for deleting instances.
  • Constructor Details

    • ReIdentifyInstance

      public ReIdentifyInstance()
  • Method Details

    • reIdentifyInstance

      protected static clojure.lang.IPersistentVector reIdentifyInstance(String userId, clojure.lang.IPersistentMap existing, String instanceGUID, String newInstanceGUID)
      Makes the necessary changes to change the unique identifier of an instance.
      Parameters:
      userId - doing the re-identification
      existing - metadata instance
      instanceGUID - existing unique identifier of the metadata instance
      newInstanceGUID - new unique identifier to use for the metadata instance
      Returns:
      IPersistentVector tuple giving the original metadata instance followed by the re-identified metadata instance
    • validate

      protected static void validate(clojure.lang.IPersistentMap existing, String instanceGUID, String metadataCollectionId, String className, String methodName) throws InvalidParameterException, RepositoryErrorException, IOException
      Validate the status re-identification.
      Parameters:
      existing - metadata instance
      instanceGUID - unique identifier of the metadata instance
      metadataCollectionId - of the metadata instance
      className - calling class
      methodName - calling method
      Throws:
      InvalidParameterException - on any null or invalid parameters
      IOException - on any error deserializing values
      RepositoryErrorException - on any other error