org.ow2.jonas.lib.ejb21
Class JEntityHandle

java.lang.Object
  extended by org.ow2.jonas.lib.ejb21.JEntityHandle
All Implemented Interfaces:
Serializable, Handle

public abstract class JEntityHandle
extends Object
implements Handle, 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  HomeHandle homehandle
           
protected  Serializable pk
           
 
Constructor Summary
JEntityHandle(JEntityRemote remote)
          constructor
 
Method Summary
abstract  EJBObject getEJBObject()
          Obtains the EJB object represented by this handle.
 Object getPK()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

homehandle

protected HomeHandle homehandle

pk

protected Serializable pk
Constructor Detail

JEntityHandle

public JEntityHandle(JEntityRemote remote)
constructor

Parameters:
remote - The Remote object
Method Detail

getEJBObject

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

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

getPK

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


Copyright © 2010 OW2 Consortium. All Rights Reserved.