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

public abstract class UndoInstanceUpdate extends AbstractTransactionFunction
Base transaction function for rolling back the last changes made to an instance's properties or status.
  • 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)