Class ChangeLog
- java.lang.Object
-
- org.apache.jackrabbit.jcr2spi.state.ChangeLog
-
public class ChangeLog extends Object
Registers changes made to states and references and consolidates empty changes.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<ItemState>
getAffectedStates()
Set<Operation>
getOperations()
ItemState
getTarget()
boolean
isEmpty()
void
persisted()
Call this method when this change log has been successfully persisted.void
undo()
Revert the changes listed within this changelog
-
-
-
Method Detail
-
persisted
public void persisted() throws RepositoryException
Call this method when this change log has been successfully persisted. This implementation will callOperation.persisted()
on the individual operations followed by setting all remaining modified states to EXISTING.- Throws:
RepositoryException
-
undo
public void undo() throws RepositoryException
Revert the changes listed within this changelog- Throws:
RepositoryException
-
getTarget
public ItemState getTarget()
- Returns:
- the target state
-
isEmpty
public boolean isEmpty()
- Returns:
- true if no
operations
are present.
-
-