Package org.h2.mvstore.tx
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 Summary
Fields Modifier and Type Field Description private T
committedValue
private long
operationId
-
Fields inherited from class org.h2.mvstore.tx.VersionedValueCommitted
value
-
-
Constructor Summary
Constructors Modifier Constructor Description private
VersionedValueUncommitted(long operationId, T value, T committedValue)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getCommittedValue()
(package private) static <X> VersionedValue<X>
getInstance(long operationId, X value, X committedValue)
Create new VersionedValueUncommitted.long
getOperationId()
boolean
isCommitted()
java.lang.String
toString()
-
Methods inherited from class org.h2.mvstore.tx.VersionedValueCommitted
getCurrentValue, getInstance
-
-
-
-
Field Detail
-
operationId
private final long operationId
-
committedValue
private final T committedValue
-
-
Method Detail
-
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 idvalue
- value before commitcommittedValue
- value after commit- Returns:
- VersionedValue instance
-
isCommitted
public boolean isCommitted()
- Overrides:
isCommitted
in classVersionedValue<T>
-
getOperationId
public long getOperationId()
- Overrides:
getOperationId
in classVersionedValue<T>
-
getCommittedValue
public T getCommittedValue()
- Overrides:
getCommittedValue
in classVersionedValueCommitted<T>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classVersionedValueCommitted<T>
-
-