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-propertyOperationwhich 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-propertyOperationfor the given arguments.AddProperty(NodeId parentId, Name propertyName, QValue[] values)Create a new add-propertyOperationfor the given arguments.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(Batch batch)Apply this operation to the givenBatchbooleanequals(java.lang.Object other)booleanequals(Operations.AddProperty other)inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
AddProperty
public AddProperty(NodeId parentId, Name propertyName, QValue value)
Create a new add-propertyOperationfor 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-propertyOperationfor the given arguments.- Parameters:
parentId-propertyName-values-- See Also:
Batch.addProperty(NodeId, Name, QValue[])
-
-
Method Detail
-
apply
public void apply(Batch batch) throws javax.jcr.RepositoryException
Apply this operation to the givenBatch
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
equals
public boolean equals(Operations.AddProperty other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-