org.objectweb.jonas_ejb.container.jorm.JEntityContext Class Reference

Inherits org.objectweb.jonas_ejb.container.JEntityContext.

Inheritance diagram for org.objectweb.jonas_ejb.container.jorm.JEntityContext:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 JEntityContext (JEntityFactory bf, EntityBean eb)
Object getPrimaryKey () throws IllegalStateException

Detailed Description

This class extends the JEntityContext of the JOnAS container in order to take in consideration the fact that the container manages PName instances and not primary keys. This is the reason why the getPrimaryKey method is overriden.

Author:
Sebastien Chassande-Barrioz

Definition at line 44 of file JEntityContext.java.


Constructor & Destructor Documentation

org.objectweb.jonas_ejb.container.jorm.JEntityContext.JEntityContext JEntityFactory  bf,
EntityBean  eb
 

Constructs an EntityContext the Context has to be initialized after this.

Parameters:
bf - the JEntityFactory
eb - the Enterprise Bean instance

Reimplemented from org.objectweb.jonas_ejb.container.JEntityContext.

Definition at line 47 of file JEntityContext.java.

Referenced by org.objectweb.jonas_ejb.container.jorm.JormFactory.createNewContext().


Member Function Documentation

Object org.objectweb.jonas_ejb.container.jorm.JEntityContext.getPrimaryKey  )  throws IllegalStateException
 

Obtains the primary key of the EJB object that is currently associated with this instance.

Returns:
The EJB object currently associated with the instance.
Exceptions:
IllegalStateException Thrown if the instance invokes this method while the instance is in a state that does not allow the instance to invoke this method.

Reimplemented from org.objectweb.jonas_ejb.container.JEntityContext.

Definition at line 59 of file JEntityContext.java.

References org.objectweb.jonas_ejb.container.jorm.Coder.encode(), org.objectweb.jonas_ejb.container.BeanFactory.getHome(), and org.objectweb.jonas_ejb.container.BeanFactory.getLocalHome().

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:11:00 2005 for JOnAS by  doxygen 1.3.9.1