org.apache.jackrabbit.core.session
Class SessionSaveOperation

java.lang.Object
  extended by org.apache.jackrabbit.core.session.SessionSaveOperation
All Implemented Interfaces:
SessionOperation<Object>, SessionWriteOperation<Object>

public class SessionSaveOperation
extends Object
implements SessionWriteOperation<Object>

Operation to persist transient changes in a session.


Constructor Summary
SessionSaveOperation()
           
 
Method Summary
 Object perform(SessionContext context)
          Persists transient changes by delegating to the save() method of the root node (or the parent of transient changes if access to the root node is not available to this session).
 String toString()
          Returns a string representation of this operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SessionSaveOperation

public SessionSaveOperation()
Method Detail

perform

public Object perform(SessionContext context)
               throws RepositoryException
Persists transient changes by delegating to the save() method of the root node (or the parent of transient changes if access to the root node is not available to this session).

Specified by:
perform in interface SessionOperation<Object>
Parameters:
context - component context of this session
Throws:
RepositoryException - if the operation fails

toString

public String toString()
Returns a string representation of this operation.

Overrides:
toString in class Object


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