org.objectweb.jonas_ejb.container
Class JEntityHome

java.lang.Object
  extended byjavax.rmi.PortableRemoteObject
      extended byorg.objectweb.jonas_ejb.container.JHome
          extended byorg.objectweb.jonas_ejb.container.JEntityHome
All Implemented Interfaces:
javax.ejb.EJBHome, java.rmi.Remote

public abstract class JEntityHome
extends JHome
implements java.rmi.Remote

This class is the Standard Home for Entity objects It exists only for beans that have declared a Remote Interface. It implements javax.ejb.EJBHome interface

Author:
Philippe Coq, Philippe Durieux

Field Summary
 
Fields inherited from class org.objectweb.jonas_ejb.container.JHome
bf, dd, ejbMetaData, homeHandle, unregistered
 
Constructor Summary
JEntityHome(EntityDesc dd, JEntityFactory bf)
          constructor
 
Method Summary
abstract  JEntityRemote createRemoteObject()
          creates a new Remote 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.JHome
getEJBMetaData, getHomeHandle, register, remove, remove, unregister
 
Methods inherited from class javax.rmi.PortableRemoteObject
connect, exportObject, narrow, toStub, unexportObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JEntityHome

public JEntityHome(EntityDesc dd,
                   JEntityFactory bf)
            throws java.rmi.RemoteException
constructor

Parameters:
dd - The Entity Deployment Decriptor
bf - The Entity Factory
Throws:
java.rmi.RemoteException - failed to create the Home
Method Detail

preInvoke

public RequestCtx preInvoke(int txa,
                            java.lang.String secu)
                     throws java.rmi.RemoteException
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:
java.rmi.RemoteException - unexpected exception in preinvoke

postInvoke

public void postInvoke(RequestCtx rctx)
                throws java.rmi.RemoteException
postInvoke is called after any request.

Parameters:
rctx - The RequestCtx that was returned at preInvoke()
Throws:
java.rmi.RemoteException - unexpected exception in postinvoke

createRemoteObject

public abstract JEntityRemote createRemoteObject()
                                          throws java.rmi.RemoteException
creates a new Remote Object for that bean. this is in the generated class because it is mainly "new objectClass()"

Returns:
The Remote Object
Throws:
java.rmi.RemoteException - could not create the remote object