org.objectweb.jonas_ejb.container
Class JEntityHome

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--org.objectweb.common.RemoteObject
                          |
                          +--org.objectweb.jonas_ejb.container.JHome
                                |
                                +--org.objectweb.jonas_ejb.container.JEntityHome
All Implemented Interfaces:
javax.ejb.EJBHome, java.rmi.Remote, java.io.Serializable

public abstract class JEntityHome
extends JHome

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
See Also:
Serialized Form

Fields inherited from class org.objectweb.jonas_ejb.container.JHome
bf, dd, ejbMetaData, homeHandle, isDavid, unregistered
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
JEntityHome(EntityDesc dd, JEntityFactory bf)
          constructor
 
Method Summary
abstract  JEntityRemote createRemoteObject()
          creates a new Remote Object for that bean. this is in the generated class because it is mainly "new objectClass()"
 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 org.objectweb.common.RemoteObject
getPort, setPort
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, 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
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 -  

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()

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