org.jboss.proxy.ejb
Class ReadAheadResult

java.lang.Object
  extended byorg.jboss.proxy.ejb.ReadAheadResult
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable

public class ReadAheadResult
extends java.lang.Object
implements java.io.Externalizable

A result of get-method invocation of CMP 2.0 entity bean in the case where read ahead is turned on. Usage: on server set main result via setMainResult(java.lang.Object) and add ahead results via addAheadResult(java.lang.Object). On client get main result via getMainResult() and array of ahead results via #getAheadResults().

See Also:
Serialized Form

Constructor Summary
ReadAheadResult()
           
 
Method Summary
 void addAheadResult(java.lang.Object aheadResult)
           
 java.lang.Object[] getAheadResult()
           
 java.lang.Object getMainResult()
           
 void readExternal(java.io.ObjectInput in)
           
 void setMainResult(java.lang.Object mainResult)
           
 void writeExternal(java.io.ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadAheadResult

public ReadAheadResult()
Method Detail

setMainResult

public void setMainResult(java.lang.Object mainResult)

addAheadResult

public void addAheadResult(java.lang.Object aheadResult)

getMainResult

public java.lang.Object getMainResult()

getAheadResult

public java.lang.Object[] getAheadResult()

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Specified by:
writeExternal in interface java.io.Externalizable
Throws:
java.io.IOException

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Specified by:
readExternal in interface java.io.Externalizable
Throws:
java.io.IOException
java.lang.ClassNotFoundException