org.objectweb.easybeans.rpc
Class JEJBResponse

java.lang.Object
  extended by org.objectweb.easybeans.rpc.JEJBResponse
All Implemented Interfaces:
java.io.Serializable, EJBResponse

public class JEJBResponse
extends java.lang.Object
implements EJBResponse

Implementation of the EJBResponse interface.

Author:
Florent Benoit
See Also:
Serialized Form

Field Summary
private  java.lang.Long beanId
          Bean id.
private  boolean removed
          Bean removed ?
private  RPCException rpcException
          RPC Exception (if any).
private static long serialVersionUID
          Id for serializable class.
private  java.lang.Object value
          Value of the response.
 
Constructor Summary
JEJBResponse()
           
 
Method Summary
 java.lang.Long getBeanId()
           
 RPCException getRPCException()
           
 java.lang.Object getValue()
          Gets the value.
 boolean isRemoved()
           
 void setBeanId(java.lang.Long beanId)
          Sets the bean Id.
 void setRemoved(boolean removed)
          Sets the removed flag.
 void setRPCException(RPCException rpcException)
          Sets the RPC Exception (if any).
 void setValue(java.lang.Object value)
          Sets the value of the response.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Id for serializable class.

See Also:
Constant Field Values

value

private java.lang.Object value
Value of the response.


beanId

private java.lang.Long beanId
Bean id.


rpcException

private RPCException rpcException
RPC Exception (if any).


removed

private boolean removed
Bean removed ?

Constructor Detail

JEJBResponse

public JEJBResponse()
Method Detail

getValue

public java.lang.Object getValue()
Gets the value.

Specified by:
getValue in interface EJBResponse
Returns:
value of response.

setValue

public void setValue(java.lang.Object value)
Sets the value of the response.

Specified by:
setValue in interface EJBResponse
Parameters:
value - response's value.

getBeanId

public java.lang.Long getBeanId()
Specified by:
getBeanId in interface EJBResponse
Returns:
id of the bean.

setBeanId

public void setBeanId(java.lang.Long beanId)
Sets the bean Id.

Specified by:
setBeanId in interface EJBResponse
Parameters:
beanId - the id of the bean.

getRPCException

public RPCException getRPCException()
Specified by:
getRPCException in interface EJBResponse
Returns:
RPC exception of the invocation (if any).

setRPCException

public void setRPCException(RPCException rpcException)
Sets the RPC Exception (if any).

Specified by:
setRPCException in interface EJBResponse
Parameters:
rpcException - the given exception

isRemoved

public boolean isRemoved()
Specified by:
isRemoved in interface EJBResponse
Returns:
true if the bean has been removed

setRemoved

public void setRemoved(boolean removed)
Sets the removed flag.

Specified by:
setRemoved in interface EJBResponse
Parameters:
removed - if bean has been removed.