Class UndoInstanceUpdate
java.lang.Object
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.txnfn.AbstractTransactionFunction
org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.txnfn.UndoInstanceUpdate
- Direct Known Subclasses:
UndoEntityUpdate
,UndoRelationshipUpdate
Base transaction function for rolling back the last changes made to an instance's properties or status.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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.Methods inherited from class org.odpi.openmetadata.adapters.repositoryservices.xtdb.repositoryconnector.txnfn.AbstractTransactionFunction
createTransactionFunction, getGUID, getInstanceProvenanceType, getMetadataCollectionId, getTxnTimeCalculation, getTypeDefForInstance, getTypeDefGUID, incrementVersion, incrementVersion
-
Constructor Details
-
UndoInstanceUpdate
public UndoInstanceUpdate()
-
-
Method Details
-
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)
-