Top Description Fields Constructors Methods
org.h2.mvstore.tx

pack-priv Class VersionedValueUncommitted<T>

extends VersionedValueCommitted<T>
Class Inheritance
Imports
org.h2.value.VersionedValue

Class VersionedValueUncommitted.
Author
Andrei Tokar

Field Summary

Modifier and TypeField and Description
private final T
private final long
Inherited from org.h2.mvstore.tx.VersionedValueCommitted:
value

Constructor Summary

AccessConstructor and Description
private
VersionedValueUncommitted(long operationId, T value, T committedValue)

Method Summary

Modifier and TypeMethod and Description
public T
pack-priv static <
type of the value to get the VersionedValue for
X
>
VersionedValue<X>

Returns:

VersionedValue instance
getInstance
(long
combined log/transaction id
operationId
,
X
value before commit
value
,
X
value after commit
committedValue
)

Create new VersionedValueUncommitted.

public long
public boolean
public String
toString()

Overrides org.h2.mvstore.tx.VersionedValueCommitted.toString.

Returns a string representation of the object.

Inherited from org.h2.mvstore.tx.VersionedValueCommitted:
getCurrentValuegetInstance

Field Detail

committedValueback to summary
private final T committedValue
operationIdback to summary
private final long operationId

Constructor Detail

VersionedValueUncommittedback to summary
private VersionedValueUncommitted(long operationId, T value, T committedValue)

Method Detail

getCommittedValueback to summary
public T getCommittedValue()

Overrides org.h2.mvstore.tx.VersionedValueCommitted.getCommittedValue.

Annotations
@Override
getInstanceback to summary
pack-priv static <X> VersionedValue<X> getInstance(long operationId, X value, X committedValue)

Create new VersionedValueUncommitted.

Parameters
<X>
type of the value to get the VersionedValue for
operationId:long

combined log/transaction id

value:X

value before commit

committedValue:X

value after commit

Returns:VersionedValue<X>

VersionedValue instance

getOperationIdback to summary
public long getOperationId()

Overrides org.h2.value.VersionedValue.getOperationId.

Annotations
@Override
isCommittedback to summary
public boolean isCommitted()

Overrides org.h2.value.VersionedValue.isCommitted.

Annotations
@Override
toStringback to summary
public String toString()

Overrides org.h2.mvstore.tx.VersionedValueCommitted.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override