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 NodeId | parentId | 
| protected Name | propertyName | 
| protected QValue[] | values | 
| Constructor and Description | 
|---|
| AddProperty(NodeId parentId,
           Name propertyName,
           QValue value)Create a new add-property  Operationfor the given arguments. | 
| AddProperty(NodeId parentId,
           Name propertyName,
           QValue[] values)Create a new add-property  Operationfor the given arguments. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | apply(Batch batch)Apply this operation to the given  Batch | 
| boolean | equals(Object other) | 
| boolean | equals(Operations.AddProperty other) | 
| int | hashCode() | 
| String | toString() | 
protected final NodeId parentId
protected final Name propertyName
protected final QValue[] values
protected final boolean isMultivalued
public AddProperty(NodeId parentId, Name propertyName, QValue value)
Operation for the given arguments.parentId - propertyName - value - Batch.addProperty(NodeId, Name, QValue)public AddProperty(NodeId parentId, Name propertyName, QValue[] values)
Operation for the given arguments.parentId - propertyName - values - Batch.addProperty(NodeId, Name, QValue[])public void apply(Batch batch) throws RepositoryException
Batchapply in interface OperationRepositoryExceptionpublic boolean equals(Operations.AddProperty other)
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.