org.objectweb.jonas_ejb.container
Class JEntityLocal

java.lang.Object
  |
  +--org.objectweb.jonas_ejb.container.JLocal
        |
        +--org.objectweb.jonas_ejb.container.JEntityLocal
All Implemented Interfaces:
javax.ejb.EJBLocalObject

public abstract class JEntityLocal
extends JLocal

Generic part of the EJBLocalObject implementation

Author:
Philippe Durieux

Field Summary
protected  JEntityFactory bf
           
protected  JEntitySwitch bs
           
 
Constructor Summary
JEntityLocal(JEntityFactory bf)
          constructor
 
Method Summary
 javax.ejb.EJBLocalHome getEJBLocalHome()
           
 java.lang.Object getPrimaryKey()
           
 boolean isIdentical(javax.ejb.EJBLocalObject obj)
          Tests if a given EJB is identical to the invoked EJB object.
 void postInvoke(RequestCtx rctx)
          postInvoke is called after any request.
 RequestCtx preInvoke(int txa, java.lang.String secu)
          preInvoke is called before any request.
abstract  void remove()
          Remove this instance.
 void setEntitySwitch(JEntitySwitch bs)
          finish initialization
 
Methods inherited from class org.objectweb.jonas_ejb.container.JLocal
exportObject, unexportObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bf

protected JEntityFactory bf

bs

protected JEntitySwitch bs
Constructor Detail

JEntityLocal

public JEntityLocal(JEntityFactory bf)
constructor
Parameters:
bf - The Entity Factory
Method Detail

setEntitySwitch

public void setEntitySwitch(JEntitySwitch bs)
finish initialization
Parameters:
bs - The Entity Bean Switch

remove

public abstract void remove()
                     throws javax.ejb.RemoveException
Remove this instance.
Throws:
javax.ejb.RemoveException - Instance could not be removed.

getEJBLocalHome

public javax.ejb.EJBLocalHome getEJBLocalHome()
Returns:
the enterprise Bean's local home interface.

getPrimaryKey

public java.lang.Object getPrimaryKey()
Returns:
the Primary Key for this EJBLocalObject

isIdentical

public boolean isIdentical(javax.ejb.EJBLocalObject obj)
Tests if a given EJB is identical to the invoked EJB object.
Parameters:
obj - - An object to test for identity with the invoked object.
Returns:
True if the given EJB object is identical to the invoked object.
Throws:
EJBException: - Thrown when the method failed due to a system-level failure.

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:
javax.ejb.EJBException -  

postInvoke

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