org.objectweb.jonas_ejb.container
Class JEntityLocalHome

java.lang.Object
  extended by org.objectweb.jonas_ejb.container.JLocalHome
      extended by org.objectweb.jonas_ejb.container.JEntityLocalHome
All Implemented Interfaces:
javax.ejb.EJBLocalHome
Direct Known Subclasses:
JRepEntityLocalHome

public abstract class JEntityLocalHome
extends JLocalHome

This class is the Standard LocalHome for Entity objects It exists only for beans that have declared a Local Interface. It implements javax.ejb.EJBLocalHome interface

Author:
Philippe Durieux

Field Summary
 
Fields inherited from class org.objectweb.jonas_ejb.container.JLocalHome
bf, dd, homeList
 
Constructor Summary
JEntityLocalHome(EntityDesc dd, JEntityFactory bf)
          constructor
 
Method Summary
abstract  JEntityLocal createLocalObject()
          Creates a new Local Object for that bean.
 JEntityLocal findLocalByPK(java.lang.Object pk)
          Find the EJBLocalObject for this PK
 
Methods inherited from class org.objectweb.jonas_ejb.container.JLocalHome
checkSecurity, getJndiLocalName, getLocalHome, postInvoke, preInvoke, register, remove, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JEntityLocalHome

public JEntityLocalHome(EntityDesc dd,
                        JEntityFactory bf)
constructor

Parameters:
dd - The Entity Deployment Decriptor
bf - The Entity Factory
Method Detail

findLocalByPK

public JEntityLocal findLocalByPK(java.lang.Object pk)
Find the EJBLocalObject for this PK

Parameters:
pk - the primary key
Returns:
EntityLocal matching this PK

createLocalObject

public abstract JEntityLocal createLocalObject()
Creates a new Local Object for that bean. This is in the generated class because it is mainly "new objectClass()"

Returns:
The Local Object