Class Operations.SetValue
- java.lang.Object
 - 
- org.apache.jackrabbit.spi.commons.batch.Operations.SetValue
 
 
- 
- All Implemented Interfaces:
 Operation
- Enclosing class:
 - Operations
 
public static class Operations.SetValue extends java.lang.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. 
- 
- 
Constructor Summary
Constructors 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(Batch batch)Apply this operation to the givenBatchbooleanequals(java.lang.Object other)booleanequals(Operations.SetValue other)inthashCode()java.lang.StringtoString() 
 - 
 
- 
- 
Constructor Detail
- 
SetValue
public SetValue(PropertyId propertyId, QValue value)
Create a new set-valueOperationfor the given arguments.- Parameters:
 propertyId-value-- See Also:
 Batch.setValue(PropertyId, QValue)
 
- 
SetValue
public SetValue(PropertyId propertyId, QValue[] values)
Create a new set-valueOperationfor the given arguments.- Parameters:
 propertyId-values-- See Also:
 Batch.setValue(PropertyId, QValue[])
 
 - 
 
- 
Method Detail
- 
apply
public void apply(Batch batch) throws javax.jcr.RepositoryException
Apply this operation to the givenBatch 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
- 
equals
public boolean equals(java.lang.Object other)
- Overrides:
 equalsin classjava.lang.Object
 
- 
equals
public boolean equals(Operations.SetValue other)
 
- 
hashCode
public int hashCode()
- Overrides:
 hashCodein classjava.lang.Object
 
 - 
 
 -