|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.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
- exceptionMethod Detail |
---|
public EJBMetaData getEJBMetaData() throws RemoteException
getEJBMetaData
in interface EJBHome
RemoteException
- exceptionpublic HomeHandle getHomeHandle() throws RemoteException
getHomeHandle
in interface EJBHome
RemoteException
- - Thrown when the method failed due
to a system-level failure.public abstract void remove(Handle handle) throws RemoteException, RemoveException
remove
in interface EJBHome
handle
- The EJB Handle
RemoteException
- exception
RemoveException
- exceptionpublic abstract void remove(Object primaryKey) throws RemoteException, RemoveException
remove
in interface EJBHome
primaryKey
- The Primary Key
RemoteException
- exception
RemoveException
- exceptionprotected void register() throws NamingException
NamingException
- exceptionprotected 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, etcpublic 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 |