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 forChangeLog
implementations 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 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(java.lang.Object other)
boolean
equals(AbstractChangeLog<?> other)
int
hashCode()
java.lang.String
toString()
-
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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
equals
public boolean equals(AbstractChangeLog<?> other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-