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 TcommittedValueprivate longoperationId-
Fields inherited from class org.h2.mvstore.tx.VersionedValueCommitted
value
-
-
Constructor Summary
Constructors Modifier Constructor Description privateVersionedValueUncommitted(long operationId, T value, T committedValue)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetCommittedValue()(package private) static <X> VersionedValue<X>getInstance(long operationId, X value, X committedValue)Create new VersionedValueUncommitted.longgetOperationId()booleanisCommitted()java.lang.StringtoString()-
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:
isCommittedin classVersionedValue<T>
-
getOperationId
public long getOperationId()
- Overrides:
getOperationIdin classVersionedValue<T>
-
getCommittedValue
public T getCommittedValue()
- Overrides:
getCommittedValuein classVersionedValueCommitted<T>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classVersionedValueCommitted<T>
-
-