org.apache.jackrabbit.core.version
Class VersionManagerImplBase.WriteOperation

java.lang.Object
  extended by org.apache.jackrabbit.core.version.VersionManagerImplBase.WriteOperation
Enclosing class:
VersionManagerImplBase

public class VersionManagerImplBase.WriteOperation
extends Object

Helper for managing write operations.


Constructor Summary
VersionManagerImplBase.WriteOperation(ISMLocking.WriteLock lock)
           
 
Method Summary
 void close()
          Closes the write operation.
 void save()
          Saves the pending operations in the LocalItemStateManager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionManagerImplBase.WriteOperation

public VersionManagerImplBase.WriteOperation(ISMLocking.WriteLock lock)
Method Detail

save

public void save()
          throws ItemStateException,
                 RepositoryException
Saves the pending operations in the LocalItemStateManager.

Throws:
ItemStateException - if the pending state is invalid
RepositoryException - if the pending state could not be persisted

close

public void close()
Closes the write operation. The pending operations are cancelled if they could not be properly saved. Finally the write lock is released.



Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.