org.apache.jackrabbit.spi.commons.batch
Class Operations.SetValue

java.lang.Object
  extended by 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-value 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.


Field Summary
protected  boolean isMultivalued
           
protected  PropertyId propertyId
           
protected  QValue[] values
           
 
Constructor Summary
Operations.SetValue(PropertyId propertyId, QValue value)
          Create a new set-value Operation for the given arguments.
Operations.SetValue(PropertyId propertyId, QValue[] values)
          Create a new set-value Operation for the given arguments.
 
Method Summary
 void apply(Batch batch)
          Apply this operation to the given Batch
 boolean equals(Object other)
           
 boolean equals(Operations.SetValue other)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

propertyId

protected final PropertyId propertyId

values

protected final QValue[] values

isMultivalued

protected final boolean isMultivalued
Constructor Detail

Operations.SetValue

public Operations.SetValue(PropertyId propertyId,
                           QValue value)
Create a new set-value Operation for the given arguments.

Parameters:
propertyId -
value -
See Also:
Batch.setValue(PropertyId, QValue)

Operations.SetValue

public Operations.SetValue(PropertyId propertyId,
                           QValue[] values)
Create a new set-value Operation for the given arguments.

Parameters:
propertyId -
values -
See Also:
Batch.setValue(PropertyId, QValue[])
Method Detail

apply

public void apply(Batch batch)
           throws RepositoryException
Apply this operation to the given Batch

Specified by:
apply in interface Operation
Throws:
RepositoryException

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object

equals

public boolean equals(Operations.SetValue other)

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.