at.spardat.xma.rpc
Class RemoteReplyData

java.lang.Object
  extended byat.spardat.xma.rpc.RemoteData
      extended byat.spardat.xma.rpc.RemoteReplyData

public class RemoteReplyData
extends at.spardat.xma.rpc.RemoteData

Value object that holds the data transferred from server to client in an XMA RPC.


Field Summary
protected  at.spardat.enterprise.exc.BaseException exception_
          An exception occured in the course of executing the request
protected  byte[] pageDeltas_
          The stream of page modifications.
protected  int runtimeVersion_
          The version of the XMA runtime that produces an serialized output stream via externalize (excluding the bootstrap runtime).
protected  short serverChangeNumber_
          The serial change number.
 
Constructor Summary
RemoteReplyData()
           
 
Method Summary
protected  void externalize(XmaOutput o)
          Writes this to the provided ObjectOutput
protected  void externalizeExclParameter(XmaOutput o)
          Write all except the parameters to the XmaOutput.
protected  void externalizeParameters(XmaOutput o)
          Write the parameters to the ObjectOutput.
protected  int getExternalizedPageDeltasSize()
          Returns the size it requires to externalize the page deltas
 java.lang.Object getParameter(int id)
          Retrieves a parameter for a given id.
 int getParameterCount()
          Returns the number of parameters
protected  void internalize(XmaInput in)
          Reads the stuff written by externalize
protected  void internalizeExclParameter(XmaInput in)
          Reads data as written by externalizeExclParameter
protected  void internalizeParameters(XmaInput in)
          Reads parameters as written by externalizeParameters.
 void setParameter(int id, java.lang.Object parameter)
          Adds a parameter to this
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

exception_

protected at.spardat.enterprise.exc.BaseException exception_
An exception occured in the course of executing the request


runtimeVersion_

protected int runtimeVersion_
The version of the XMA runtime that produces an serialized output stream via externalize (excluding the bootstrap runtime). This must be the second attribute serialized to react on different versions when deserializing.


serverChangeNumber_

protected short serverChangeNumber_
The serial change number. See class Component. -1 means that the SCN is unknown. An unknown SCN may be sent from server to client in the case of some early time processing errors.


pageDeltas_

protected byte[] pageDeltas_
The stream of page modifications. Never null if this is a RemoteCallData. May be null if this is a RemoteReplyData.

Constructor Detail

RemoteReplyData

public RemoteReplyData()
Method Detail

externalize

protected void externalize(XmaOutput o)
                    throws java.io.IOException
Writes this to the provided ObjectOutput

Throws:
java.io.IOException

internalize

protected void internalize(XmaInput in)
                    throws java.io.IOException,
                           java.lang.ClassNotFoundException
Reads the stuff written by externalize

Throws:
java.io.IOException
java.lang.ClassNotFoundException

externalizeExclParameter

protected void externalizeExclParameter(XmaOutput o)
                                 throws java.io.IOException
Write all except the parameters to the XmaOutput.

Throws:
java.io.IOException

externalizeParameters

protected void externalizeParameters(XmaOutput o)
                              throws java.io.IOException
Write the parameters to the ObjectOutput.

Throws:
java.io.IOException

internalizeExclParameter

protected void internalizeExclParameter(XmaInput in)
                                 throws java.io.IOException
Reads data as written by externalizeExclParameter

Throws:
java.io.IOException

internalizeParameters

protected void internalizeParameters(XmaInput in)
                              throws java.io.IOException,
                                     java.lang.ClassNotFoundException
Reads parameters as written by externalizeParameters.

Throws:
java.io.IOException
java.lang.ClassNotFoundException

getExternalizedPageDeltasSize

protected int getExternalizedPageDeltasSize()
Returns the size it requires to externalize the page deltas


setParameter

public void setParameter(int id,
                         java.lang.Object parameter)
Adds a parameter to this

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.

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.

getParameterCount

public int getParameterCount()
Returns the number of parameters