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

java.lang.Object
  extended by org.apache.jackrabbit.spi.commons.batch.Operations.AddProperty
All Implemented Interfaces:
Operation
Direct Known Subclasses:
ConsolidatingChangeLog.CancelableOperations.AddProperty
Enclosing class:
Operations

public static class Operations.AddProperty
extends Object
implements Operation

Representative of an add-property Operation which calls Batch.addProperty(NodeId, Name, QValue) or Batch.addProperty(NodeId, Name, QValue[]) depending on whether the property is multi valued or not when applied to a Batch.


Field Summary
protected  boolean isMultivalued
           
protected  NodeId parentId
           
protected  Name propertyName
           
protected  QValue[] values
           
 
Constructor Summary
Operations.AddProperty(NodeId parentId, Name propertyName, QValue value)
          Create a new add-property Operation for the given arguments.
Operations.AddProperty(NodeId parentId, Name propertyName, QValue[] values)
          Create a new add-property 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.AddProperty other)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

parentId

protected final NodeId parentId

propertyName

protected final Name propertyName

values

protected final QValue[] values

isMultivalued

protected final boolean isMultivalued
Constructor Detail

Operations.AddProperty

public Operations.AddProperty(NodeId parentId,
                              Name propertyName,
                              QValue value)
Create a new add-property Operation for the given arguments.

Parameters:
parentId -
propertyName -
value -
See Also:
Batch.addProperty(NodeId, Name, QValue)

Operations.AddProperty

public Operations.AddProperty(NodeId parentId,
                              Name propertyName,
                              QValue[] values)
Create a new add-property Operation for the given arguments.

Parameters:
parentId -
propertyName -
values -
See Also:
Batch.addProperty(NodeId, Name, 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.AddProperty other)

hashCode

public int hashCode()
Overrides:
hashCode in class Object


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