Package org.infinispan.schematic.internal.delta

Examples of org.infinispan.schematic.internal.delta.RemoveOperation


                        PutIfAbsentOperation op = (PutIfAbsentOperation)operation;
                        if (op.isApplied()) {
                            observer.put(op.getParentPath(), op.getFieldName(), op.getNewValue());
                        }
                    } else if (operation instanceof RemoveOperation) {
                        RemoveOperation op = (RemoveOperation)operation;
                        if (op.isRemoved()) {
                            observer.remove(op.getParentPath(), op.getFieldName());
                        }
                    }
                }
            }
        }
View Full Code Here


    }

    @Override
    public Object remove( String name ) {
        Object oldValue = super.remove(name);
        observer.addOperation(new RemoveOperation(path, name, copy(oldValue)));
        return oldValue;
    }
View Full Code Here

TOP

Related Classes of org.infinispan.schematic.internal.delta.RemoveOperation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.