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