org.objectweb.jonas_ejb.container
Class JLocalHome
java.lang.Object
|
+--org.objectweb.jonas_ejb.container.JLocalHome
- All Implemented Interfaces:
- javax.ejb.EJBLocalHome
- Direct Known Subclasses:
- JEntityLocalHome, JSessionLocalHome
- public abstract class JLocalHome
- extends java.lang.Object
- implements javax.ejb.EJBLocalHome
This class represents an EJBLocalHome
It is shared between Sessions and Entities.
- Author:
- Philippe Durieux
Method Summary |
static JLocalHome |
getLocalHome(java.lang.String beanName)
Get JLocalHome by its name |
protected void |
register()
register this bean to JNDI (rebind)
We register actually a Reference object. |
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.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dd
protected BeanDesc dd
bf
protected JFactory bf
homeList
protected static java.util.Map homeList
JLocalHome
public JLocalHome(BeanDesc dd,
JFactory bf)
- Constructor for the base class of the specific generated Home object.
- Parameters:
dd
- The Bean Deployment Descriptorbf
- The Bean Factory
remove
public abstract void remove(java.lang.Object primaryKey)
throws javax.ejb.RemoveException
- Removes an EJB object identified by its primary key.
- Specified by:
remove
in interface javax.ejb.EJBLocalHome
- Parameters:
primaryKey
- The Primary Key
register
protected void register()
throws javax.naming.NamingException
- register this bean to JNDI (rebind)
We register actually a Reference object.
unregister
protected void unregister()
throws javax.naming.NamingException
- unregister this bean in JNDI (unbind)
getLocalHome
public static JLocalHome getLocalHome(java.lang.String beanName)
- Get JLocalHome by its name
- Parameters:
beanName
- The Bean JNDI local Name- Returns:
- The Bean LocalHome