org.apache.jackrabbit.spi.commons.batch
Class Operations.AddNode

java.lang.Object
  extended by org.apache.jackrabbit.spi.commons.batch.Operations.AddNode
All Implemented Interfaces:
Operation
Direct Known Subclasses:
ConsolidatingChangeLog.CancelableOperations.AddNode
Enclosing class:
Operations

public static class Operations.AddNode
extends Object
implements Operation

Representative of an add-node Operation which calls Batch.addNode(NodeId, Name, Name, String) when applied to a Batch.


Field Summary
protected  Name nodeName
           
protected  Name nodetypeName
           
protected  NodeId parentId
           
protected  String uuid
           
 
Constructor Summary
Operations.AddNode(NodeId parentId, Name nodeName, Name nodetypeName, String uuid)
          Create a new add-node Operation for the given arguments.
 
Method Summary
 void apply(Batch batch)
          Apply this operation to the given Batch
 boolean equals(Object other)
           
 boolean equals(Operations.AddNode other)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

parentId

protected final NodeId parentId

nodeName

protected final Name nodeName

nodetypeName

protected final Name nodetypeName

uuid

protected final String uuid
Constructor Detail

Operations.AddNode

public Operations.AddNode(NodeId parentId,
                          Name nodeName,
                          Name nodetypeName,
                          String uuid)
Create a new add-node Operation for the given arguments.

Parameters:
parentId -
nodeName -
nodetypeName -
uuid -
See Also:
Batch.addNode(NodeId, Name, Name, String)
Method Detail

apply

public void apply(Batch batch)
           throws RepositoryException
Apply this operation to the given Batch

Specified by:
apply in interface Operation
Throws:
RepositoryException

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object

equals

public boolean equals(Operations.AddNode other)

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2011-2013 Adobe Systems Incorporated. All Rights Reserved.