org.coweb.oe
Class InsertOperation

java.lang.Object
  extended by org.coweb.oe.Operation
      extended by org.coweb.oe.InsertOperation

public class InsertOperation
extends Operation


Field Summary
 
Fields inherited from class org.coweb.oe.Operation
contextVector, immutable, infinity, key, local, order, position, seqId, siteId, type, value, xCache
 
Constructor Summary
protected InsertOperation(Map<String,Object> args)
           
 
Method Summary
 Operation transformWithDelete(Operation op)
          Transforms this insert to include the effect of a delete.
 Operation transformWithInsert(Operation op)
          Transforms this insert to include the effect of an insert.
 Operation transformWithUpdate(Operation op)
          No-op.
 
Methods inherited from class org.coweb.oe.Operation
addToCache, compareByContext, compareByOrder, copy, createHistoryKey, createOperationFromState, createOperationFromType, getContextVector, getFromCache, getPosition, getSeqId, getSiteId, getState, getValue, setImmutable, setState, toString, transformWith, upgradeContextTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InsertOperation

protected InsertOperation(Map<String,Object> args)
                   throws OperationEngineException
Throws:
OperationEngineException
Method Detail

transformWithInsert

public Operation transformWithInsert(Operation op)
Transforms this insert to include the effect of an insert. Assumes the control algorithm breaks the CP2 pre-req to ensure convergence.

Specified by:
transformWithInsert in class Operation
Parameters:
{InsertOperation} - op Insert to include in this op

transformWithDelete

public Operation transformWithDelete(Operation op)
Transforms this insert to include the effect of a delete.

Specified by:
transformWithDelete in class Operation
Parameters:
{DeleteOperation} - op Delete to include in this op
Returns:
{InsertOperation} This instance

transformWithUpdate

public Operation transformWithUpdate(Operation op)
No-op. Update has no effect on an insert.

Specified by:
transformWithUpdate in class Operation
Parameters:
{UpdateOperation} - op Update to include in this op


Copyright © 2011-2012 The Dojo Foundation. All Rights Reserved.