org.apache.jackrabbit.core.cluster
Class NodeDeletedOperation

java.lang.Object
  extended by org.apache.jackrabbit.core.cluster.ItemOperation
      extended by org.apache.jackrabbit.core.cluster.NodeDeletedOperation

public class NodeDeletedOperation
extends ItemOperation

Describes a journal operation for a node deletion.


Field Summary
 
Fields inherited from class org.apache.jackrabbit.core.cluster.ItemOperation
ADDED, DELETED, MODIFIED
 
Method Summary
 void apply(ChangeLog changeLog)
          Apply an operation to a change log.
static org.apache.jackrabbit.core.cluster.NodeOperation create(int operationType)
          Creates a new instance of a known subclass.
static org.apache.jackrabbit.core.cluster.NodeOperation create(NodeState state)
          Create a node operation for a deleted node.
 NodeDefId getDefintionId()
          Return the definition id.
 NodeId getId()
          Return the node id.
 boolean hasDefinitionId()
          Return a flag indicating whether the definition id is contained in this record.
 boolean hasId()
          Return a flag indicating whether the node id is contained in this record.
 void setDefintionId(NodeDefId defintionId)
          Set the definition id.
 void setId(NodeId id)
          Set the node id.
 
Methods inherited from class org.apache.jackrabbit.core.cluster.ItemOperation
getOperationType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static org.apache.jackrabbit.core.cluster.NodeOperation create(NodeState state)
Create a node operation for a deleted node. The only member that must be transmitted is the node id.

Parameters:
state - node state
Returns:
node operation

apply

public void apply(ChangeLog changeLog)
Apply an operation to a change log. Subclass responsibility.

Specified by:
apply in class ItemOperation
Parameters:
changeLog - change log

create

public static org.apache.jackrabbit.core.cluster.NodeOperation create(int operationType)
Creates a new instance of a known subclass.

Parameters:
operationType - operation type
Returns:
instance of this class

hasId

public boolean hasId()
Return a flag indicating whether the node id is contained in this record.

Returns:
true if the node id is contained; false otherwise.

getId

public NodeId getId()
Return the node id.

Returns:
node id

setId

public void setId(NodeId id)
Set the node id.

Parameters:
id - node id

getDefintionId

public NodeDefId getDefintionId()
Return the definition id.

Returns:
definition id

hasDefinitionId

public boolean hasDefinitionId()
Return a flag indicating whether the definition id is contained in this record.

Returns:
true if the definition id is contained; false otherwise.

setDefintionId

public void setDefintionId(NodeDefId defintionId)
Set the definition id.

Parameters:
defintionId - definition id


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