Class ReLinkRelationship
java.lang.Object
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.txnfn.AbstractTransactionFunction
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.txnfn.ReLinkRelationship
Transaction function for re-linking a relationship when one of its entity proxy's identities has changed.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionReLinkRelationship
(Long txId, clojure.lang.PersistentHashMap existing, String relationshipGUID, String oldEntityGUID, String newEntityGUID) Constructor used to execute the transaction function. -
Method Summary
Methods inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.txnfn.AbstractTransactionFunction
createTransactionFunction, getGUID, getInstanceProvenanceType, getMetadataCollectionId, getTxnTimeCalculation, getTypeDefForInstance, getTypeDefGUID, incrementVersion, incrementVersion
-
Field Details
-
FUNCTION_NAME
public static final clojure.lang.Keyword FUNCTION_NAME
-
-
Constructor Details
-
ReLinkRelationship
public ReLinkRelationship(Long txId, clojure.lang.PersistentHashMap existing, String relationshipGUID, String oldEntityGUID, String newEntityGUID) throws Exception Constructor used to execute the transaction function.- Parameters:
txId
- the transaction ID of this function invocationexisting
- XTDB document to updaterelationshipGUID
- unique identifier of the relationshipoldEntityGUID
- unique identifier of the entity that is being changednewEntityGUID
- new unique identifier for that same entity- Throws:
Exception
- on any error
-
-
Method Details
-
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
-