Class Operations.SetValue
- java.lang.Object
- 
- org.apache.jackrabbit.spi.commons.batch.Operations.SetValue
 
- 
- All Implemented Interfaces:
- Operation
 - Direct Known Subclasses:
- ConsolidatingChangeLog.CancelableOperations.SetValue
 - Enclosing class:
- Operations
 
 public static class Operations.SetValue extends Object implements Operation Representative of a set-valueOperationwhich callsBatch.setValue(PropertyId, QValue)orBatch.setValue(PropertyId, QValue[])depending on whether the property is multi valued or not when applied to aBatch.
- 
- 
Field SummaryFields Modifier and Type Field Description protected booleanisMultivaluedprotected PropertyIdpropertyIdprotected QValue[]values
 - 
Constructor SummaryConstructors Constructor Description SetValue(PropertyId propertyId, QValue value)Create a new set-valueOperationfor the given arguments.SetValue(PropertyId propertyId, QValue[] values)Create a new set-valueOperationfor the given arguments.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(Batch batch)Apply this operation to the givenBatchbooleanequals(Object other)booleanequals(Operations.SetValue other)inthashCode()StringtoString()
 
- 
- 
- 
Field Detail- 
propertyIdprotected final PropertyId propertyId 
 - 
valuesprotected final QValue[] values 
 - 
isMultivaluedprotected final boolean isMultivalued 
 
- 
 - 
Constructor Detail- 
SetValuepublic SetValue(PropertyId propertyId, QValue value) Create a new set-valueOperationfor the given arguments.- Parameters:
- propertyId-
- value-
- See Also:
- Batch.setValue(PropertyId, QValue)
 
 - 
SetValuepublic SetValue(PropertyId propertyId, QValue[] values) Create a new set-valueOperationfor the given arguments.- Parameters:
- propertyId-
- values-
- See Also:
- Batch.setValue(PropertyId, QValue[])
 
 
- 
 - 
Method Detail- 
applypublic void apply(Batch batch) throws RepositoryException Apply this operation to the givenBatch- Specified by:
- applyin interface- Operation
- Throws:
- RepositoryException
 
 - 
equalspublic boolean equals(Operations.SetValue other) 
 
- 
 
-