storage.support
Interface StTxnAccum

All Superinterfaces:
OperatorFactory

public interface StTxnAccum
extends OperatorFactory

An accumulator for incrementally building a Txn.


Method Summary
 Txn commit()
          Freeze and submit the Txn to the Storage container.
 TxnOp record(NodeContent.Editor ed, Operator op)
          Bind an Operator and add it to the Txn being built.
 
Methods inherited from interface storage.support.OperatorFactory
createOpClone, createOpCreate, createOpInsertAfter, createOpInsertBefore, createOpRemoveKey, createOpRemoveRange, createOpReplaceRange, createOpSetField, createOpSetValue
 

Method Detail

record

public TxnOp record(NodeContent.Editor ed,
                    Operator op)

Bind an Operator and add it to the Txn being built.

Returns true if this was the first operation on the Node of ed in this Txn.


commit

public Txn commit()

Freeze and submit the Txn to the Storage container.

Returns:
the StTxn created by this accumulator.