org.objectweb.jonas_ejb.container
Class JEntityRemote
java.lang.Object
javax.rmi.PortableRemoteObject
org.objectweb.jonas_ejb.container.JRemote
org.objectweb.jonas_ejb.container.JEntityRemote
- All Implemented Interfaces:
- javax.ejb.EJBObject, java.rmi.Remote
- public abstract class JEntityRemote
- extends JRemote
- implements java.rmi.Remote
Generic part of the EJBObject implementation
- Author:
- Philippe Coq, Philippe Durieux
Fields inherited from class org.objectweb.jonas_ejb.container.JRemote |
bf |
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 |
Methods inherited from interface javax.ejb.EJBObject |
getHandle, remove |
ebf
protected JEntityFactory ebf
bs
protected JEntitySwitch bs
JEntityRemote
public JEntityRemote(JEntityFactory bf)
throws java.rmi.RemoteException
- constructor
- Parameters:
bf
- The Entity Factory
setEntitySwitch
public void setEntitySwitch(JEntitySwitch bs)
- finish initialization
- Parameters:
bs
- The Entity Bean Switch
getEJBHome
public javax.ejb.EJBHome getEJBHome()
- Specified by:
getEJBHome
in interface javax.ejb.EJBObject
- Returns:
- the enterprise Bean's home interface.
getPrimaryKey
public java.lang.Object getPrimaryKey()
- Specified by:
getPrimaryKey
in interface javax.ejb.EJBObject
- Returns:
- the Primary Key for this EJBObject
- Throws:
javax.ejb.EJBException
- Bean has no primary key yet.
isIdentical
public boolean isIdentical(javax.ejb.EJBObject obj)
throws java.rmi.RemoteException
- Tests if a given EJB is identical to the invoked EJB object.
- Specified by:
isIdentical
in interface javax.ejb.EJBObject
- Parameters:
obj
- - An object to test for identity with the invoked object.
- Returns:
- True if the given EJB object is identical to the invoked object.
- Throws:
java.rmi.RemoteException
- Thrown when the method failed due to a system-level failure.
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()
- Throws:
java.rmi.RemoteException