org.coweb.oe
Class InsertOperation
java.lang.Object
org.coweb.oe.Operation
org.coweb.oe.InsertOperation
public class InsertOperation
- extends Operation
| Fields inherited from class org.coweb.oe.Operation |
contextVector, immutable, infinity, key, local, order, position, seqId, siteId, type, value, xCache |
| 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 |
InsertOperation
protected InsertOperation(Map<String,Object> args)
throws OperationEngineException
- Throws:
OperationEngineException
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.