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 Object implements ChangeLog
This base class forChangeLogimplementations maintains a list of operations of type typeT.
-
-
Field Summary
Fields Modifier and Type Field Description protected List<T>operationsOperations kept in this change log.
-
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(Object other)booleanequals(AbstractChangeLog<?> other)inthashCode()StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
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 RepositoryException
Added an operation to the list ofoperations.- Parameters:
op-Operationto add- Throws:
RepositoryException
-
apply
public Batch apply(Batch batch) throws 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.- Specified by:
applyin interfaceChangeLog- Returns:
- The
batchpassed in as argument with the operations from this change log applied. - Throws:
RepositoryException
-
equals
public boolean equals(AbstractChangeLog<?> other)
-
-