org.apache.jackrabbit.spi.commons.batch
Class Operations.AddProperty
java.lang.Object
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
.
parentId
protected final NodeId parentId
propertyName
protected final Name propertyName
values
protected final QValue[] values
isMultivalued
protected final boolean isMultivalued
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[])
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.