public static class Operations.AddProperty extends Object implements Operation
Operation which calls
Batch.addProperty(NodeId, Name, QValue) or Batch.addProperty(NodeId, Name, QValue[])
depending on whether the property is multi valued or not when applied to a Batch.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isMultivalued |
protected org.apache.jackrabbit.spi.NodeId |
parentId |
protected org.apache.jackrabbit.spi.Name |
propertyName |
protected org.apache.jackrabbit.spi.QValue[] |
values |
| Constructor and Description |
|---|
AddProperty(org.apache.jackrabbit.spi.NodeId parentId,
org.apache.jackrabbit.spi.Name propertyName,
org.apache.jackrabbit.spi.QValue value)
Create a new add-property
Operation for the given arguments. |
AddProperty(org.apache.jackrabbit.spi.NodeId parentId,
org.apache.jackrabbit.spi.Name propertyName,
org.apache.jackrabbit.spi.QValue[] values)
Create a new add-property
Operation for the given arguments. |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(org.apache.jackrabbit.spi.Batch batch)
Apply this operation to the given
Batch |
boolean |
equals(Object other) |
boolean |
equals(Operations.AddProperty other) |
int |
hashCode() |
String |
toString() |
protected final org.apache.jackrabbit.spi.NodeId parentId
protected final org.apache.jackrabbit.spi.Name propertyName
protected final org.apache.jackrabbit.spi.QValue[] values
protected final boolean isMultivalued
public AddProperty(org.apache.jackrabbit.spi.NodeId parentId,
org.apache.jackrabbit.spi.Name propertyName,
org.apache.jackrabbit.spi.QValue value)
Operation for the given arguments.parentId - propertyName - value - Batch.addProperty(NodeId, Name, QValue)public AddProperty(org.apache.jackrabbit.spi.NodeId parentId,
org.apache.jackrabbit.spi.Name propertyName,
org.apache.jackrabbit.spi.QValue[] values)
Operation for the given arguments.parentId - propertyName - values - Batch.addProperty(NodeId, Name, QValue[])public void apply(org.apache.jackrabbit.spi.Batch batch)
throws RepositoryException
Batchapply in interface OperationRepositoryExceptionpublic boolean equals(Operations.AddProperty other)
Copyright © 2004–2017 The Apache Software Foundation. All rights reserved.