Class UndoInstanceUpdate
- java.lang.Object
-
- org.odpi.egeria.connectors.juxt.xtdb.txnfn.AbstractTransactionFunction
-
- org.odpi.egeria.connectors.juxt.xtdb.txnfn.UndoInstanceUpdate
-
- Direct Known Subclasses:
UndoEntityUpdate,UndoRelationshipUpdate
public abstract class UndoInstanceUpdate extends AbstractTransactionFunction
Base transaction function for rolling back the last changes made to an instance's properties or status.
-
-
Constructor Summary
Constructors Constructor Description UndoInstanceUpdate()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static clojure.lang.IPersistentVectorgetPreviousVersionFromCursor(xtdb.api.ICursor<clojure.lang.IPersistentMap> cursor)Retrieve only the current and previous versions of the provided XTDB reference, from an already-opened lazily- evaluated cursor.-
Methods inherited from class org.odpi.egeria.connectors.juxt.xtdb.txnfn.AbstractTransactionFunction
createTransactionFunction, getGUID, getInstanceProvenanceType, getMetadataCollectionId, getTxnTimeCalculation, getTypeDefForInstance, getTypeDefGUID, incrementVersion, incrementVersion
-
-
-
-
Method Detail
-
getPreviousVersionFromCursor
protected static clojure.lang.IPersistentVector getPreviousVersionFromCursor(xtdb.api.ICursor<clojure.lang.IPersistentMap> cursor)
Retrieve only the current and previous versions of the provided XTDB reference, from an already-opened lazily- evaluated cursor.- Parameters:
cursor- from which to lazily-evaluate the current and previous versions- Returns:
- IPersistentVector with the current version as the first element, and the previous version as the second element (or null if there is no previous version)
-
-