Class AbstractChangeLog<T extends Operation>
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.batch.AbstractChangeLog<T>
-
- Type Parameters:
T-
- All Implemented Interfaces:
org.apache.jackrabbit.spi.Batch,ChangeLog
- 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.org.apache.jackrabbit.spi.Batchapply(org.apache.jackrabbit.spi.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()
-
-
-
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 org.apache.jackrabbit.spi.Batch apply(org.apache.jackrabbit.spi.Batch batch) throws RepositoryExceptionThis 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)
-
-