Class Operations.AddProperty
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.batch.Operations.AddProperty
-
- All Implemented Interfaces:
Operation
- Enclosing class:
- Operations
public static class Operations.AddProperty extends java.lang.Object implements Operation
Representative of an add-propertyOperation
which callsBatch.addProperty(NodeId, Name, QValue)
orBatch.addProperty(NodeId, Name, QValue[])
depending on whether the property is multi valued or not when applied to aBatch
.
-
-
Constructor Summary
Constructors Constructor Description AddProperty(NodeId parentId, Name propertyName, QValue value)
Create a new add-propertyOperation
for the given arguments.AddProperty(NodeId parentId, Name propertyName, QValue[] values)
Create a new add-propertyOperation
for the given arguments.
-
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.AddProperty other)
int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
AddProperty
public AddProperty(NodeId parentId, Name propertyName, QValue value)
Create a new add-propertyOperation
for the given arguments.- Parameters:
parentId
-propertyName
-value
-- See Also:
Batch.addProperty(NodeId, Name, QValue)
-
AddProperty
public AddProperty(NodeId parentId, Name propertyName, QValue[] values)
Create a new add-propertyOperation
for the given arguments.- Parameters:
parentId
-propertyName
-values
-- See Also:
Batch.addProperty(NodeId, Name, QValue[])
-
-
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.AddProperty other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-