Class Operations.AddNode
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.batch.Operations.AddNode
-
- All Implemented Interfaces:
Operation
- Enclosing class:
- Operations
public static class Operations.AddNode extends java.lang.Object implements Operation
Representative of an add-nodeOperation
which callsBatch.addNode(NodeId, Name, Name, String)
when applied to aBatch
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(Batch batch)
Apply this operation to the givenBatch
boolean
equals(java.lang.Object other)
boolean
equals(Operations.AddNode other)
int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
AddNode
public AddNode(NodeId parentId, Name nodeName, Name nodetypeName, java.lang.String uuid)
Create a new add-nodeOperation
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 givenBatch
- Specified by:
apply
in interfaceOperation
- Throws:
RepositoryException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
equals
public boolean equals(Operations.AddNode other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-