Class ReIdentifyInstance
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
Base transaction function for deleting instances.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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.protected static void
validate
(clojure.lang.IPersistentMap existing, String instanceGUID, String metadataCollectionId, String className, String methodName) Validate the status re-identification.Methods inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.txnfn.AbstractTransactionFunction
createTransactionFunction, getGUID, getInstanceProvenanceType, getMetadataCollectionId, getTxnTimeCalculation, getTypeDefForInstance, getTypeDefGUID, incrementVersion, incrementVersion
-
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-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 InvalidParameterException, RepositoryErrorException, IOException Validate the status re-identification.- Parameters:
existing
- metadata instanceinstanceGUID
- unique identifier of the metadata instancemetadataCollectionId
- of the metadata instanceclassName
- calling classmethodName
- calling method- Throws:
InvalidParameterException
- on any null or invalid parametersIOException
- on any error deserializing valuesRepositoryErrorException
- on any other error
-