org.objectweb.jonas_ejb.container
Class JEntityLocalHome

java.lang.Object
  |
  +--org.objectweb.jonas_ejb.container.JLocalHome
        |
        +--org.objectweb.jonas_ejb.container.JEntityLocalHome
All Implemented Interfaces:
javax.ejb.EJBLocalHome

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

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.
 void postInvoke(RequestCtx rctx)
          postInvoke is called after any request.
 RequestCtx preInvoke(int txa, java.lang.String secu)
          preInvoke is called before any request.
 
Methods inherited from class org.objectweb.jonas_ejb.container.JLocalHome
getLocalHome, 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

preInvoke

public RequestCtx preInvoke(int txa,
                            java.lang.String secu)
preInvoke is called before any request.
Parameters:
txa - Transaction Attribute (Supports, Required, ...)
secu - Security String that uniquely identifies the method.
Returns:
A RequestCtx object
Throws:
EJBException -  

postInvoke

public void postInvoke(RequestCtx rctx)
postInvoke is called after any request.
Parameters:
rctx - The RequestCtx that was returned at preInvoke()

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