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 forChangeLog
implementations maintains a list of operations of type typeT
.
-
-
Field Summary
Fields Modifier and Type Field Description protected List<T>
operations
Operation
s kept in this change log.
-
Constructor Summary
Constructors Constructor Description AbstractChangeLog()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addOperation(T op)
Added an operation to the list ofoperations
.Batch
apply(Batch batch)
This implementation applies each of the operation maintained by this change log to the passedbatch
.boolean
equals(Object other)
boolean
equals(AbstractChangeLog<?> other)
int
hashCode()
String
toString()
-
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
-Operation
to 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 theOperation
s contained in this change log to the passedbatch
.- Specified by:
apply
in interfaceChangeLog
- Returns:
- The
batch
passed in as argument with the operations from this change log applied. - Throws:
RepositoryException
-
equals
public boolean equals(AbstractChangeLog<?> other)
-
-