Class VersionedValueUncommitted<T>

java.lang.Object
org.h2.value.VersionedValue<T>
org.h2.mvstore.tx.VersionedValueCommitted<T>
org.h2.mvstore.tx.VersionedValueUncommitted<T>

class VersionedValueUncommitted<T> extends VersionedValueCommitted<T>
Class VersionedValueUncommitted.
  • Field Details

    • operationId

      private final long operationId
    • committedValue

      private final T committedValue
  • Constructor Details

    • VersionedValueUncommitted

      private VersionedValueUncommitted(long operationId, T value, T committedValue)
  • Method Details

    • getInstance

      static <X> VersionedValue<X> getInstance(long operationId, X value, X committedValue)
      Create new VersionedValueUncommitted.
      Type Parameters:
      X - type of the value to get the VersionedValue for
      Parameters:
      operationId - combined log/transaction id
      value - value before commit
      committedValue - value after commit
      Returns:
      VersionedValue instance
    • isCommitted

      public boolean isCommitted()
      Overrides:
      isCommitted in class VersionedValue<T>
    • getOperationId

      public long getOperationId()
      Overrides:
      getOperationId in class VersionedValue<T>
    • getCommittedValue

      public T getCommittedValue()
      Overrides:
      getCommittedValue in class VersionedValueCommitted<T>
    • toString

      public String toString()
      Overrides:
      toString in class VersionedValueCommitted<T>