public static class Operations.SetValue extends Object implements Operation
Operation which calls
Batch.setValue(PropertyId, QValue) or Batch.setValue(PropertyId, 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.PropertyId |
propertyId |
protected org.apache.jackrabbit.spi.QValue[] |
values |
| Constructor and Description |
|---|
SetValue(org.apache.jackrabbit.spi.PropertyId propertyId,
org.apache.jackrabbit.spi.QValue value)
Create a new set-value
Operation for the given arguments. |
SetValue(org.apache.jackrabbit.spi.PropertyId propertyId,
org.apache.jackrabbit.spi.QValue[] values)
Create a new set-value
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.SetValue other) |
int |
hashCode() |
String |
toString() |
protected final org.apache.jackrabbit.spi.PropertyId propertyId
protected final org.apache.jackrabbit.spi.QValue[] values
protected final boolean isMultivalued
public SetValue(org.apache.jackrabbit.spi.PropertyId propertyId,
org.apache.jackrabbit.spi.QValue value)
Operation for the given arguments.propertyId - value - Batch.setValue(PropertyId, QValue)public SetValue(org.apache.jackrabbit.spi.PropertyId propertyId,
org.apache.jackrabbit.spi.QValue[] values)
Operation for the given arguments.propertyId - values - Batch.setValue(PropertyId, QValue[])public void apply(org.apache.jackrabbit.spi.Batch batch)
throws RepositoryException
Batchapply in interface OperationRepositoryExceptionpublic boolean equals(Operations.SetValue other)
Copyright © 2004–2017 The Apache Software Foundation. All rights reserved.