Class Operations.AddProperty
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.batch.Operations.AddProperty
-
- All Implemented Interfaces:
Operation
- Direct Known Subclasses:
ConsolidatingChangeLog.CancelableOperations.AddProperty
- Enclosing class:
- Operations
public static class Operations.AddProperty extends 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.
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanisMultivaluedprotected NodeIdparentIdprotected NamepropertyNameprotected QValue[]values
-
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(Object other)booleanequals(Operations.AddProperty other)inthashCode()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 RepositoryException
Apply this operation to the givenBatch- Specified by:
applyin interfaceOperation- Throws:
RepositoryException
-
equals
public boolean equals(Operations.AddProperty other)
-
-