org.objectweb.jonas_ejb.container
Class JHome
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--org.objectweb.common.RemoteObject
|
+--org.objectweb.jonas_ejb.container.JHome
- All Implemented Interfaces:
- javax.ejb.EJBHome, java.rmi.Remote, java.io.Serializable
- Direct Known Subclasses:
- JEntityHome, JSessionHome
- public abstract class JHome
- extends RemoteObject
- implements javax.ejb.EJBHome
This class represents an EJBHome Remote Interface
It is shared between Sessions and Entities.
- Author:
- Philippe Coq, Philippe Durieux
- See Also:
- Serialized Form
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Constructor Summary |
JHome(BeanDesc dd,
JFactory bf)
Constructor for the base class of the specific generated Home object. |
Method Summary |
javax.ejb.EJBMetaData |
getEJBMetaData()
Obtains the EJBMetaData for the enterprise Bean. |
javax.ejb.HomeHandle |
getHomeHandle()
Obtain a handle for the home object. |
protected void |
register()
register this bean to JNDI (rebind) |
abstract void |
remove(javax.ejb.Handle handle)
Removes an EJB object identified by its handle. |
abstract void |
remove(java.lang.Object primaryKey)
Removes an EJB object identified by its primary key. |
protected void |
unregister()
unregister this bean in JNDI (unbind) |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
ejbMetaData
protected JMetaData ejbMetaData
homeHandle
protected JHomeHandle homeHandle
dd
protected BeanDesc dd
bf
protected JFactory bf
isDavid
protected boolean isDavid
unregistered
protected boolean unregistered
JHome
public JHome(BeanDesc dd,
JFactory bf)
throws java.rmi.RemoteException
- Constructor for the base class of the specific generated Home object.
- Parameters:
dd
- The Been Deployment Descriptorbf
- The Bean Factory
getEJBMetaData
public javax.ejb.EJBMetaData getEJBMetaData()
throws java.rmi.RemoteException
- Obtains the EJBMetaData for the enterprise Bean.
- Specified by:
getEJBMetaData
in interface javax.ejb.EJBHome
- Returns:
- The enterprise Bean's EJBMetaData
getHomeHandle
public javax.ejb.HomeHandle getHomeHandle()
throws java.rmi.RemoteException
- Obtain a handle for the home object. The handle can be used at later time to re-obtain a
reference to the home object, possibly in a different Java Virtual Machine.
- Specified by:
getHomeHandle
in interface javax.ejb.EJBHome
- Returns:
- A handle for the home object.
- Throws:
java.rmi.RemoteException
- - Thrown when the method failed due to a system-level
failure.
remove
public abstract void remove(javax.ejb.Handle handle)
throws java.rmi.RemoteException,
javax.ejb.RemoveException
- Removes an EJB object identified by its handle.
- Specified by:
remove
in interface javax.ejb.EJBHome
- Parameters:
handle
- The EJB Handle
remove
public abstract void remove(java.lang.Object primaryKey)
throws java.rmi.RemoteException,
javax.ejb.RemoveException
- Removes an EJB object identified by its primary key.
- Specified by:
remove
in interface javax.ejb.EJBHome
- Parameters:
primaryKey
- The Primary Key
register
protected void register()
throws javax.naming.NamingException
- register this bean to JNDI (rebind)
unregister
protected void unregister()
throws javax.naming.NamingException
- unregister this bean in JNDI (unbind)