org.objectweb.jonas_ejb.container.JHome Class Reference

Inherited by org.objectweb.jonas_ejb.container.JEntityHome, and org.objectweb.jonas_ejb.container.JSessionHome.

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

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 JHome (BeanDesc dd, JFactory bf) throws RemoteException
EJBMetaData getEJBMetaData () throws RemoteException
HomeHandle getHomeHandle () throws java.rmi.RemoteException
abstract void remove (Handle handle) throws RemoteException, RemoveException
abstract void remove (Object primaryKey) throws RemoteException, RemoveException
String getJndiName ()
RequestCtx preInvoke (int txa) throws RemoteException
void checkSecurity (EJBInvocation ejbInv)
void postInvoke (RequestCtx rctx) throws RemoteException
BeanDesc getDd ()
JFactory getBf ()

Protected Member Functions

void register () throws NamingException
void unregister () throws NamingException

Detailed Description

This class represents an EJBHome Remote Interface It is shared between Sessions and Entities.
Author:
Philippe Coq, Philippe Durieux

Definition at line 57 of file JHome.java.


Constructor & Destructor Documentation

org.objectweb.jonas_ejb.container.JHome.JHome BeanDesc  dd,
JFactory  bf
throws RemoteException
 

Constructor for the base class of the specific generated Home object.

Parameters:
dd The Been Deployment Descriptor
bf The Bean Factory
Exceptions:
RemoteException exception

Definition at line 70 of file JHome.java.


Member Function Documentation

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

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

Here is the call graph for this function:

JFactory org.objectweb.jonas_ejb.container.JHome.getBf  ) 
 

Returns:
the bean factory

Definition at line 263 of file JHome.java.

Referenced by org.objectweb.jonas_lib.naming.JacORBPRODelegate.narrow().

BeanDesc org.objectweb.jonas_ejb.container.JHome.getDd  ) 
 

Returns:
Returns the dd.

Definition at line 257 of file JHome.java.

EJBMetaData org.objectweb.jonas_ejb.container.JHome.getEJBMetaData  )  throws RemoteException
 

Obtains the EJBMetaData for the enterprise Bean.

Returns:
The enterprise Bean's EJBMetaData
Exceptions:
RemoteException exception

Definition at line 85 of file JHome.java.

References org.objectweb.jonas_ejb.deployment.api.BeanDesc.getHomeClass(), org.objectweb.jonas_ejb.svc.JMetaData.getPrimaryKeyClass(), and org.objectweb.jonas_ejb.deployment.api.BeanDesc.getRemoteClass().

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

Here is the call graph for this function:

HomeHandle org.objectweb.jonas_ejb.container.JHome.getHomeHandle  )  throws java.rmi.RemoteException
 

Obtain a handle for the home object. The handle can be used at later time to re-obtain a reference to the home object, possibly in a different Java Virtual Machine.

Returns:
A handle for the home object.
Exceptions:
java.rmi.RemoteException - Thrown when the method failed due to a system-level failure.

Definition at line 129 of file JHome.java.

References org.objectweb.jonas_ejb.deployment.api.BeanDesc.getJndiName(), and org.objectweb.jonas_ejb.container.JFactory.myClassLoader().

Here is the call graph for this function:

String org.objectweb.jonas_ejb.container.JHome.getJndiName  ) 
 

Get the jndi name for the bean

Returns:
The jndi name
Exceptions:
RemoteException 

Definition at line 219 of file JHome.java.

References org.objectweb.jonas_ejb.deployment.api.BeanDesc.getJndiName().

Here is the call graph for this function:

void org.objectweb.jonas_ejb.container.JHome.postInvoke RequestCtx  rctx  )  throws RemoteException
 

postInvoke is called after any request.

Parameters:
rctx The RequestCtx that was returned at preInvoke()
Exceptions:
RemoteException unexpected exception in postinvoke

Reimplemented in org.objectweb.jonas_ejb.container.JSessionHome.

Definition at line 249 of file JHome.java.

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

Here is the call graph for this function:

RequestCtx org.objectweb.jonas_ejb.container.JHome.preInvoke int  txa  )  throws RemoteException
 

preInvoke is called before any request.

Parameters:
txa Transaction Attribute (Supports, Required, ...)
Returns:
A RequestCtx object
Exceptions:
RemoteException unexpected exception in preinvoke

Reimplemented in org.objectweb.jonas_ejb.container.JSessionHome.

Definition at line 229 of file JHome.java.

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

Here is the call graph for this function:

void org.objectweb.jonas_ejb.container.JHome.register  )  throws NamingException [protected]
 

register this bean to JNDI (rebind)

Exceptions:
NamingException exception

Definition at line 186 of file JHome.java.

References org.objectweb.jonas_ejb.deployment.api.BeanDesc.getJndiName(), and org.objectweb.jonas_ejb.deployment.api.BeanDesc.getSasComponent().

Referenced by org.objectweb.jonas_ejb.container.JEntityFactory.init(), and org.objectweb.jonas_ejb.container.JSessionFactory.JSessionFactory().

Here is the call graph for this function:

abstract void org.objectweb.jonas_ejb.container.JHome.remove Object  primaryKey  )  throws RemoteException, RemoveException [pure virtual]
 

Removes an EJB object identified by its primary key.

Parameters:
primaryKey The Primary Key
Exceptions:
RemoteException exception
RemoveException exception

abstract void org.objectweb.jonas_ejb.container.JHome.remove Handle  handle  )  throws RemoteException, RemoveException [pure virtual]
 

Removes an EJB object identified by its handle.

Parameters:
handle The EJB Handle
Exceptions:
RemoteException exception
RemoveException exception

void org.objectweb.jonas_ejb.container.JHome.unregister  )  throws NamingException [protected]
 

unregister this bean in JNDI (unbind)

Exceptions:
NamingException exception

Definition at line 200 of file JHome.java.

References org.objectweb.jonas_ejb.container.JFactory.getInitialContext(), and org.objectweb.jonas_ejb.deployment.api.BeanDesc.getJndiName().

Referenced by org.objectweb.jonas_ejb.container.JSessionFactory.stop(), and org.objectweb.jonas_ejb.container.JEntityFactory.stop().

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:10:24 2005 for JOnAS by  doxygen 1.3.9.1