org.apache.jackrabbit.core.cluster
Class ItemOperation

java.lang.Object
  extended by org.apache.jackrabbit.core.cluster.ItemOperation
Direct Known Subclasses:
NodeAddedOperation, NodeDeletedOperation, NodeModifiedOperation, PropertyAddedOperation, PropertyDeletedOperation, PropertyModifiedOperation

public abstract class ItemOperation
extends Object

Item operation interface.


Field Summary
static int ADDED
          Operation type: added.
static int DELETED
          Operation type: deleted.
static int MODIFIED
          Operation type: modified.
 
Constructor Summary
protected ItemOperation(int operationType)
          Creates a new instance of this class.
 
Method Summary
abstract  void apply(ChangeLog changeLog)
          Apply an operation to a change log.
 int getOperationType()
          Returns the operation type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ADDED

public static final int ADDED
Operation type: added.

See Also:
Constant Field Values

MODIFIED

public static final int MODIFIED
Operation type: modified.

See Also:
Constant Field Values

DELETED

public static final int DELETED
Operation type: deleted.

See Also:
Constant Field Values
Constructor Detail

ItemOperation

protected ItemOperation(int operationType)
Creates a new instance of this class. Takes an operation type as parameter.

Method Detail

getOperationType

public int getOperationType()
Returns the operation type.

Returns:
operation type

apply

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

Parameters:
changeLog - change log


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