public class AddProperty extends TransientOperation
AddProperty
...status
STATUS_PENDING, STATUS_PERSISTED, STATUS_UNDO
Modifier and Type | Method and Description |
---|---|
void |
accept(OperationVisitor visitor)
Calls the appropriate
visit method on visitor
based on the type of this operation. |
static Operation |
create(NodeState parentState,
Name propName,
int propertyType,
QPropertyDefinition def,
QValue[] values) |
QPropertyDefinition |
getDefinition() |
NodeId |
getParentId() |
NodeState |
getParentState() |
Name |
getPropertyName() |
int |
getPropertyType() |
QValue[] |
getValues() |
boolean |
isMultiValued() |
void |
persisted()
Informs this Operation that it has been successfully executed.
|
void |
undo()
Revert changes made by this operation.
|
getOptions
addAffectedItemState, assertChildNodeEntries, getAffectedItemStates, getName, getNodeState, getStatus
public void accept(OperationVisitor visitor) throws javax.jcr.ValueFormatException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.AccessDeniedException, javax.jcr.ItemExistsException, javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.version.VersionException, javax.jcr.RepositoryException
Operation
visit
method on visitor
based on the type of this operation.visitor
- javax.jcr.ValueFormatException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.AccessDeniedException
javax.jcr.ItemExistsException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.version.VersionException
javax.jcr.RepositoryException
public void persisted() throws javax.jcr.RepositoryException
Operation
javax.jcr.RepositoryException
Operation.persisted()
public void undo() throws javax.jcr.RepositoryException
Operation
undo
in interface Operation
undo
in class AbstractOperation
javax.jcr.RepositoryException
Operation.undo()
public NodeId getParentId()
public NodeState getParentState()
public Name getPropertyName()
public int getPropertyType()
public QValue[] getValues()
public boolean isMultiValued()
public QPropertyDefinition getDefinition()
public static Operation create(NodeState parentState, Name propName, int propertyType, QPropertyDefinition def, QValue[] values) throws javax.jcr.RepositoryException
parentState
- propName
- propertyType
- def
- values
- javax.jcr.RepositoryException
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.