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-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
.
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
isMultivalued
protected NodeId
parentId
protected Name
propertyName
protected QValue[]
values
-
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(Object other)
boolean
equals(Operations.AddProperty other)
int
hashCode()
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
-
equals
public boolean equals(Operations.AddProperty other)
-
-