Class ReLinkRelationship
- java.lang.Object
-
- org.odpi.egeria.connectors.juxt.xtdb.txnfn.AbstractTransactionFunction
-
- org.odpi.egeria.connectors.juxt.xtdb.txnfn.ReLinkRelationship
-
public class ReLinkRelationship extends AbstractTransactionFunction
Transaction function for re-linking a relationship when one of its entity proxy's identities has changed.
-
-
Field Summary
Fields Modifier and Type Field Description static clojure.lang.KeywordFUNCTION_NAME
-
Constructor Summary
Constructors Constructor Description ReLinkRelationship(Long txId, clojure.lang.PersistentHashMap existing, String relationshipGUID, String oldEntityGUID, String newEntityGUID)Constructor used to execute the transaction function.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidcreate(xtdb.api.tx.Transaction.Builder tx)Create the transaction function within XTDB.clojure.lang.IPersistentMapdoc()Interface that returns the updated document to write-back from the transaction.-
Methods inherited from class org.odpi.egeria.connectors.juxt.xtdb.txnfn.AbstractTransactionFunction
createTransactionFunction, getGUID, getInstanceProvenanceType, getMetadataCollectionId, getTxnTimeCalculation, getTypeDefForInstance, getTypeDefGUID, incrementVersion, incrementVersion
-
-
-
-
Constructor Detail
-
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 Detail
-
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
-
-