org.ow2.jonas.lib.ejb21
Class JEntityHandle
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
homehandle
protected HomeHandle homehandle
pk
protected Serializable pk
JEntityHandle
public JEntityHandle(JEntityRemote remote)
- constructor
- Parameters:
remote
- The Remote object
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.