org.objectweb.jonas_ejb.container
Class JEntityHandle

java.lang.Object
  extended by org.objectweb.jonas_ejb.container.JEntityHandle
All Implemented Interfaces:
java.io.Serializable, javax.ejb.Handle

public abstract class JEntityHandle
extends java.lang.Object
implements javax.ejb.Handle, java.io.Serializable

This class implements javax.ejb.Handle interface. For a Entity Bean a Handle is a serializable class that contains the HomeHandle and the primary key

Author:
Philippe Coq
See Also:
Serialized Form

Field Summary
protected  javax.ejb.HomeHandle homehandle
           
protected  java.io.Serializable pk
           
 
Constructor Summary
JEntityHandle(JEntityRemote remote)
          constructor
 
Method Summary
abstract  javax.ejb.EJBObject getEJBObject()
          Obtains the EJB object represented by this handle.
 java.lang.Object getPK()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

homehandle

protected javax.ejb.HomeHandle homehandle

pk

protected java.io.Serializable pk
Constructor Detail

JEntityHandle

public JEntityHandle(JEntityRemote remote)
constructor

Parameters:
remote - The Remote object
Method Detail

getEJBObject

public abstract javax.ejb.EJBObject getEJBObject()
                                          throws java.rmi.RemoteException
Obtains the EJB object represented by this handle.

Specified by:
getEJBObject in interface javax.ejb.Handle
Returns:
The EJB object
Throws:
java.rmi.RemoteException - The EJB object could not be obtained because of a system-level failure.

getPK

public java.lang.Object getPK()
Returns:
the Primary Key embedded in the Handle