org.nakedobjects.remoting.exchange
Class ExecuteClientActionResponse

java.lang.Object
  extended by org.nakedobjects.remoting.exchange.ExecuteClientActionResponse
All Implemented Interfaces:
java.io.Serializable, Encodable

public class ExecuteClientActionResponse
extends java.lang.Object
implements Encodable, java.io.Serializable

See Also:
Serialized Form

Constructor Summary
ExecuteClientActionResponse(DataInputExtended input)
           
ExecuteClientActionResponse(ReferenceData[] madePersistent, Version[] changedVersion, ObjectData[] updates)
           
 
Method Summary
 void encode(DataOutputExtended output)
           
 Version[] getChanged()
          Return the Versions for the objects that were saved by the server for the action.
 ReferenceData[] getPersisted()
          Return the ObjectDatas for the persisted objects (in the same seqence as passed to the server).
 ObjectData[] getUpdates()
          Return the set of ObjectData for any objects that where changed by the server while executing the action.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecuteClientActionResponse

public ExecuteClientActionResponse(ReferenceData[] madePersistent,
                                   Version[] changedVersion,
                                   ObjectData[] updates)

ExecuteClientActionResponse

public ExecuteClientActionResponse(DataInputExtended input)
                            throws java.io.IOException
Throws:
java.io.IOException
Method Detail

encode

public void encode(DataOutputExtended output)
            throws java.io.IOException
Specified by:
encode in interface Encodable
Throws:
java.io.IOException

getPersisted

public ReferenceData[] getPersisted()
Return the ObjectDatas for the persisted objects (in the same seqence as passed to the server). This is used to update the client's copies with the new OIDs and Versions


getChanged

public Version[] getChanged()
Return the Versions for the objects that were saved by the server for the action. These are used to update the versions of the client's copies so they align with the servers copies.


getUpdates

public ObjectData[] getUpdates()
Return the set of ObjectData for any objects that where changed by the server while executing the action.



Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.