Class AbstractChangeLog<T extends Operation>
- java.lang.Object
 - 
- org.apache.jackrabbit.spi.commons.batch.AbstractChangeLog<T>
 
 
- 
- Type Parameters:
 T-
- Direct Known Subclasses:
 ChangeLogImpl,ConsolidatingChangeLog
public abstract class AbstractChangeLog<T extends Operation> extends java.lang.Object implements ChangeLog
This base class forChangeLogimplementations maintains a list of operations of type typeT. 
- 
- 
Constructor Summary
Constructors Constructor Description AbstractChangeLog() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddOperation(T op)Added an operation to the list ofoperations.Batchapply(Batch batch)This implementation applies each of the operation maintained by this change log to the passedbatch.booleanequals(java.lang.Object other)booleanequals(AbstractChangeLog<?> other)inthashCode()java.lang.StringtoString()- 
Methods inherited from interface org.apache.jackrabbit.spi.Batch
addNode, addProperty, addProperty, move, remove, reorderNodes, setMixins, setPrimaryType, setTree, setValue, setValue 
 - 
 
 - 
 
- 
- 
Method Detail
- 
addOperation
public void addOperation(T op) throws javax.jcr.RepositoryException
Added an operation to the list ofoperations.- Parameters:
 op-Operationto add- Throws:
 javax.jcr.RepositoryException
 
- 
apply
public Batch apply(Batch batch) throws javax.jcr.RepositoryException
This implementation applies each of the operation maintained by this change log to the passedbatch. Applies theOperations contained in this change log to the passedbatch. 
- 
toString
public java.lang.String toString()
- Overrides:
 toStringin classjava.lang.Object
 
- 
equals
public boolean equals(java.lang.Object other)
- Overrides:
 equalsin classjava.lang.Object
 
- 
equals
public boolean equals(AbstractChangeLog<?> other)
 
- 
hashCode
public int hashCode()
- Overrides:
 hashCodein classjava.lang.Object
 
 - 
 
 -