at.spardat.xma.rpc
Class RemoteReply

java.lang.Object
  extended byat.spardat.xma.rpc.RemoteOperation
      extended byat.spardat.xma.rpc.RemoteReply

public class RemoteReply
extends RemoteOperation

Models the answer the XMA server sends to the XMA client in a RemoteCall.


Field Summary
static int PARAM_GLOBAL_EVENTS
           
 
Method Summary
 java.lang.Object getParameter(int id)
          Retrieves a parameter for a given id.
 boolean getRollbackModelChanges()
          Returns if model changes should be rolled back at the end of the execution of the server side event method.
 void rollbackModelChanges()
          May be called if you want to undo all changes in widget models that have been done in the course of executing a server side event.
 void setParameter(int id, java.lang.Object parameter)
          Adds a parameter to this reply that is transferred to the client and may be accessed via getParameter there.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAM_GLOBAL_EVENTS

public static int PARAM_GLOBAL_EVENTS
Method Detail

rollbackModelChanges

public void rollbackModelChanges()
May be called if you want to undo all changes in widget models that have been done in the course of executing a server side event. All widget models of the executing component are reset to the state at which the server side event method has been called when the server side event method terminates.


getRollbackModelChanges

public boolean getRollbackModelChanges()
Returns if model changes should be rolled back at the end of the execution of the server side event method.


setParameter

public void setParameter(int id,
                         java.lang.Object parameter)
Adds a parameter to this reply that is transferred to the client and may be accessed via getParameter there.

Note that this feature is usually not necessary with XMA since data is automatically transferred via widget models. You should ask yourself seriously if you are doing things right.

Specified by:
setParameter in class RemoteOperation
Parameters:
id - a numeric id of the parameter. Must not be less than zero and greater than 127.
parameter - the parameter data which has to implement java.io.Serializable and must be successfully be serialized. It cannot be null.
Throws:
java.lang.IllegalArgumentException - if any before mentioned condition is violated.

getParameter

public java.lang.Object getParameter(int id)
Retrieves a parameter for a given id.

Specified by:
getParameter in class RemoteOperation
Parameters:
id - the id that has been used in setParameter.
Returns:
the same object set via setParameter or null if there is no parameter with the given id.