org.objectweb.jonas_ejb.container.JLocalHome Class Reference

Inherited by org.objectweb.jonas_ejb.container.JEntityLocalHome, and org.objectweb.jonas_ejb.container.JSessionLocalHome.

Inheritance diagram for org.objectweb.jonas_ejb.container.JLocalHome:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.jonas_ejb.container.JLocalHome:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 JLocalHome (BeanDesc dd, JFactory bf)
abstract void remove (Object primaryKey) throws RemoveException
RequestCtx preInvoke (int txa)
void checkSecurity (EJBInvocation ejbInv)
void postInvoke (RequestCtx rctx)

Static Public Member Functions

JLocalHome getLocalHome (String beanName)

Protected Member Functions

void register () throws NamingException
void unregister () throws NamingException

Detailed Description

This class represents an EJBLocalHome It is shared between Sessions and Entities.
Author:
Philippe Durieux

Definition at line 50 of file JLocalHome.java.


Constructor & Destructor Documentation

org.objectweb.jonas_ejb.container.JLocalHome.JLocalHome BeanDesc  dd,
JFactory  bf
 

Constructor for the base class of the specific generated Home object.

Parameters:
dd The Bean Deployment Descriptor
bf The Bean Factory

Definition at line 64 of file JLocalHome.java.

References org.objectweb.jonas_ejb.deployment.api.BeanDesc.bf.


Member Function Documentation

void org.objectweb.jonas_ejb.container.JLocalHome.checkSecurity EJBInvocation  ejbInv  ) 
 

Check if the access to the bean is authorized

Parameters:
ejbInv object containing security signature of the method, args of method, etc

Definition at line 140 of file JLocalHome.java.

References org.objectweb.jonas_ejb.container.JFactory.checkSecurity().

Here is the call graph for this function:

JLocalHome org.objectweb.jonas_ejb.container.JLocalHome.getLocalHome String  beanName  )  [static]
 

Get JLocalHome by its name

Parameters:
beanName The Bean JNDI local Name
Returns:
The Bean LocalHome

Definition at line 118 of file JLocalHome.java.

void org.objectweb.jonas_ejb.container.JLocalHome.postInvoke RequestCtx  rctx  ) 
 

postInvoke is called after any request.

Parameters:
rctx The RequestCtx that was returned at preInvoke()

Definition at line 149 of file JLocalHome.java.

References org.objectweb.jonas_ejb.container.JFactory.postInvoke().

Here is the call graph for this function:

RequestCtx org.objectweb.jonas_ejb.container.JLocalHome.preInvoke int  txa  ) 
 

preInvoke is called before any request.

Parameters:
txa Transaction Attribute (Supports, Required, ...)
Returns:
A RequestCtx object
Exceptions:
EJBException 

Definition at line 130 of file JLocalHome.java.

References org.objectweb.jonas_ejb.container.JFactory.preInvoke().

Here is the call graph for this function:

void org.objectweb.jonas_ejb.container.JLocalHome.register  )  throws NamingException [protected]
 

register this bean to JNDI (rebind) We register actually a Reference object.

Definition at line 88 of file JLocalHome.java.

References org.objectweb.jonas_ejb.container.JFactory.getInitialContext(), and org.objectweb.jonas_ejb.deployment.api.BeanDesc.getJndiLocalName().

Referenced by org.objectweb.jonas_ejb.container.JEntityFactory.init(), and org.objectweb.jonas_ejb.container.JSessionFactory.JSessionFactory().

Here is the call graph for this function:

abstract void org.objectweb.jonas_ejb.container.JLocalHome.remove Object  primaryKey  )  throws RemoveException [pure virtual]
 

Removes an EJB object identified by its primary key.

Parameters:
primaryKey The Primary Key

Referenced by org.objectweb.jonas_ejb.container.JEntityFactory.sync().

void org.objectweb.jonas_ejb.container.JLocalHome.unregister  )  throws NamingException [protected]
 

unregister this bean in JNDI (unbind)

Definition at line 104 of file JLocalHome.java.

References org.objectweb.jonas_ejb.container.JFactory.getInitialContext(), and org.objectweb.jonas_ejb.deployment.api.BeanDesc.getJndiLocalName().

Referenced by org.objectweb.jonas_ejb.container.JSessionFactory.stop(), and org.objectweb.jonas_ejb.container.JEntityFactory.stop().

Here is the call graph for this function:


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:10:26 2005 for JOnAS by  doxygen 1.3.9.1