Class AbstractChangeLog<T extends Operation>
java.lang.Object
org.apache.jackrabbit.spi.commons.batch.AbstractChangeLog<T>
- Type Parameters:
T-
- Direct Known Subclasses:
ChangeLogImpl,ConsolidatingChangeLog
This base class for
ChangeLog implementations maintains a list of operations
of type type T.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOperation(T op) Added an operation to the list ofoperations.This implementation applies each of the operation maintained by this change log to the passedbatch.booleanbooleanequals(AbstractChangeLog<?> other) inthashCode()toString()Methods inherited from interface org.apache.jackrabbit.spi.Batch
addNode, addProperty, addProperty, move, remove, reorderNodes, setMixins, setPrimaryType, setTree, setValue, setValue
-
Constructor Details
-
AbstractChangeLog
public AbstractChangeLog()
-
-
Method Details
-
addOperation
Added an operation to the list ofoperations.- Parameters:
op-Operationto add- Throws:
RepositoryException
-
apply
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- Parameters:
batch-- Returns:
- The
batchpassed in as argument with the operations from this change log applied. - Throws:
RepositoryException
-
toString
-
equals
-
equals
-
hashCode
public int hashCode()
-