|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.rmi.PortableRemoteObject
org.ow2.jonas.lib.ejb21.JHome
public abstract class JHome
This class represents an EJBHome Remote Interface It is shared between Sessions and Entities.
| Field Summary | |
|---|---|
protected JFactory |
bf
|
protected BeanDesc |
dd
|
protected JMetaData |
ejbMetaData
|
protected boolean |
unregistered
|
| Constructor Summary | |
|---|---|
JHome(BeanDesc dd,
JFactory bf)
Constructor for the base class of the specific generated Home object. |
|
| Method Summary | |
|---|---|
void |
checkSecurity(EJBInvocation ejbInv)
Check if the access to the bean is authorized. |
JFactory |
getBf()
|
BeanDesc |
getDd()
|
EJBMetaData |
getEJBMetaData()
Obtains the EJBMetaData for the enterprise Bean. |
HomeHandle |
getHomeHandle()
Obtain a handle for the home object. |
String |
getJndiName()
Get the jndi name for the bean. |
void |
postInvoke(RequestCtx rctx)
postInvoke is called after any request. |
RequestCtx |
preInvoke(int txa)
preInvoke is called before any request. |
protected void |
register()
register this bean to JNDI (rebind). |
abstract void |
remove(Handle handle)
Removes an EJB object identified by its handle. |
abstract void |
remove(Object primaryKey)
Removes an EJB object identified by its primary key. |
protected void |
unregister()
unregister this bean in JNDI (unbind). |
| 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 |
| Field Detail |
|---|
protected JMetaData ejbMetaData
protected BeanDesc dd
protected JFactory bf
protected boolean unregistered
| Constructor Detail |
|---|
public JHome(BeanDesc dd,
JFactory bf)
throws RemoteException
dd - The Been Deployment Descriptorbf - The Bean Factory
RemoteException - exception| Method Detail |
|---|
public EJBMetaData getEJBMetaData()
throws RemoteException
getEJBMetaData in interface EJBHomeRemoteException - exception
public HomeHandle getHomeHandle()
throws RemoteException
getHomeHandle in interface EJBHomeRemoteException - - Thrown when the method failed due
to a system-level failure.
public abstract void remove(Handle handle)
throws RemoteException,
RemoveException
remove in interface EJBHomehandle - The EJB Handle
RemoteException - exception
RemoveException - exception
public abstract void remove(Object primaryKey)
throws RemoteException,
RemoveException
remove in interface EJBHomeprimaryKey - The Primary Key
RemoteException - exception
RemoveException - exception
protected void register()
throws NamingException
NamingException - exception
protected void unregister()
throws NamingException
NamingException - exceptionpublic String getJndiName()
RemoteException
public RequestCtx preInvoke(int txa)
throws RemoteException
txa - Transaction Attribute (Supports, Required, ...)
RemoteException - unexpected exception in preinvokepublic void checkSecurity(EJBInvocation ejbInv)
ejbInv - object containing security signature of the method, args of
method, etc
public void postInvoke(RequestCtx rctx)
throws RemoteException
rctx - The RequestCtx that was returned at preInvoke()
RemoteException - unexpected exception in postinvokepublic BeanDesc getDd()
public JFactory getBf()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||