Class ReIdentifyInstance
- java.lang.Object
-
- org.odpi.egeria.connectors.juxt.xtdb.txnfn.AbstractTransactionFunction
-
- org.odpi.egeria.connectors.juxt.xtdb.txnfn.ReIdentifyInstance
-
- Direct Known Subclasses:
ReIdentifyEntity,ReIdentifyRelationship
public abstract class ReIdentifyInstance extends AbstractTransactionFunction
Base transaction function for deleting instances.
-
-
Constructor Summary
Constructors Constructor Description ReIdentifyInstance()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static clojure.lang.IPersistentVectorreIdentifyInstance(String userId, clojure.lang.IPersistentMap existing, String instanceGUID, String newInstanceGUID)Makes the necessary changes to change the unique identifier of an instance.protected static voidvalidate(clojure.lang.IPersistentMap existing, String instanceGUID, String metadataCollectionId, String className, String methodName)Validate the status re-identification.-
Methods inherited from class org.odpi.egeria.connectors.juxt.xtdb.txnfn.AbstractTransactionFunction
createTransactionFunction, getGUID, getInstanceProvenanceType, getMetadataCollectionId, getTxnTimeCalculation, getTypeDefForInstance, getTypeDefGUID, incrementVersion, incrementVersion
-
-
-
-
Method Detail
-
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-identificationexisting- metadata instanceinstanceGUID- existing unique identifier of the metadata instancenewInstanceGUID- 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 org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException, org.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException, IOExceptionValidate the status re-identification.- Parameters:
existing- metadata instanceinstanceGUID- unique identifier of the metadata instancemetadataCollectionId- of the metadata instanceclassName- calling classmethodName- calling method- Throws:
org.odpi.openmetadata.repositoryservices.ffdc.exception.InvalidParameterException- on any null or invalid parametersIOException- on any error deserializing valuesorg.odpi.openmetadata.repositoryservices.ffdc.exception.RepositoryErrorException- on any other error
-
-