org.objectweb.jonas_ejb.container.JSessionLocal Class Reference

Inherits org.objectweb.jonas_ejb.container.JLocal.

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

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 JSessionLocal (JSessionFactory bf)
EJBLocalHome getEJBLocalHome ()
Object getPrimaryKey () throws EJBException
boolean isIdentical (EJBLocalObject obj)
void setSessionSwitch (JSessionSwitch bs)
JSessionSwitch getSessionSwitch ()
RequestCtx preInvoke (int txa)
void checkSecurity (EJBInvocation ejbInv)
void postInvoke (RequestCtx rctx)

Detailed Description

Generic part of the EJBLocalObject implementation
Author:
Philippe Durieux

Definition at line 41 of file JSessionLocal.java.


Constructor & Destructor Documentation

org.objectweb.jonas_ejb.container.JSessionLocal.JSessionLocal JSessionFactory  bf  ) 
 

constructor

Parameters:
bf The Session Factory

Definition at line 51 of file JSessionLocal.java.


Member Function Documentation

void org.objectweb.jonas_ejb.container.JSessionLocal.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 155 of file JSessionLocal.java.

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

Here is the call graph for this function:

EJBLocalHome org.objectweb.jonas_ejb.container.JSessionLocal.getEJBLocalHome  ) 
 

Returns:
the enterprise Bean's local home interface.

Definition at line 67 of file JSessionLocal.java.

References org.objectweb.jonas_ejb.container.JSessionFactory.getLocalHome().

Here is the call graph for this function:

Object org.objectweb.jonas_ejb.container.JSessionLocal.getPrimaryKey  )  throws EJBException
 

Returns:
the Primary Key for this EJBObject
Exceptions:
EJBException Always : Session bean has no primary key

Definition at line 75 of file JSessionLocal.java.

JSessionSwitch org.objectweb.jonas_ejb.container.JSessionLocal.getSessionSwitch  ) 
 

Returns:
the JSessionSwitch for this Session

Definition at line 132 of file JSessionLocal.java.

Referenced by org.objectweb.jonas_ejb.container.JSessionLocal.isIdentical().

boolean org.objectweb.jonas_ejb.container.JSessionLocal.isIdentical EJBLocalObject  obj  ) 
 

Tests if a given EJB is identical to the invoked EJB object. This is different whether the bean is stateless or stateful.

Parameters:
EJBLocalObject obj - An object to test for identity with the invoked object.
Returns:
True if the given EJB object is identical to the invoked object.
Exceptions:
EJBException: Thrown when the method failed due to a system-level failure.

Definition at line 88 of file JSessionLocal.java.

References org.objectweb.jonas_ejb.container.JSessionSwitch.getBeanFactory(), org.objectweb.jonas_ejb.container.JSessionLocal.getSessionSwitch(), and org.objectweb.jonas_ejb.container.JSessionFactory.isStateful.

Here is the call graph for this function:

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

postInvoke is called after any request.

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

Definition at line 165 of file JSessionLocal.java.

References org.objectweb.jonas_ejb.container.RequestCtx.currTx, org.objectweb.jonas_ejb.container.JSessionSwitch.delistConnections(), org.objectweb.jonas_ejb.container.JSessionSwitch.discardICtx(), org.objectweb.jonas_ejb.container.JFactory.postInvoke(), org.objectweb.jonas_ejb.container.JSessionSwitch.releaseICtx(), org.objectweb.jonas_ejb.container.JSessionSwitch.saveBeanTx(), and org.objectweb.jonas_ejb.container.RequestCtx.sysExc.

Here is the call graph for this function:

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

preInvoke is called before any request.

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

Definition at line 142 of file JSessionLocal.java.

References org.objectweb.jonas_ejb.container.RequestCtx.currTx, org.objectweb.jonas_ejb.container.JSessionSwitch.enlistConnections(), org.objectweb.jonas_ejb.container.RequestCtx.mustCommit, org.objectweb.jonas_ejb.container.JFactory.preInvoke(), and org.objectweb.jonas_ejb.container.JSessionSwitch.setMustCommit().

Here is the call graph for this function:

void org.objectweb.jonas_ejb.container.JSessionLocal.setSessionSwitch JSessionSwitch  bs  ) 
 

finish initialization

Parameters:
bs The Session Switch

Definition at line 124 of file JSessionLocal.java.

Referenced by org.objectweb.jonas_ejb.container.JSessionSwitch.JSessionSwitch().


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