Package com.sun.ejb.containers
Class EJBObjectImpl
java.lang.Object
com.sun.ejb.containers.EJBLocalRemoteObject
com.sun.ejb.containers.EJBObjectImpl
- All Implemented Interfaces:
jakarta.ejb.EJBObject,Remote
- Direct Known Subclasses:
EJBObjectInvocationHandler
EJBObjectImpl implements EJBObject methods for EJBs.
It is extended by the generated concrete type-specific EJBObject
implementation (e.g. Hello_EJBObject).
Instances of this class are NEVER given to beans or clients.
Beans and clients get only stubs (instances of the stub class
generated by rmic).
-
Field Summary
Fields inherited from class com.sun.ejb.containers.EJBLocalRemoteObject
_logger, container, debug, primaryKey -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal jakarta.ejb.EJBHomeGet the Remote object corresponding to an EJBObjectImpl for the RemoteHome view.getEJBObject(String generatedBusinessInterface) Get the Remote object corresponding to an EJBObjectImpl for the RemoteBusiness view.final jakarta.ejb.HandleThis is called when the EJB client does ejbref.getHandle().final RemotegetStub()final RemotebooleanisIdentical(jakarta.ejb.EJBObject ejbo) final voidremove()This is called when the EJB client does ejbref.remove().voidsetEJBObject(String generatedBusinessInterface, Remote ejbObject) voidsetEJBObject(Remote ejbObject) Methods inherited from class com.sun.ejb.containers.EJBLocalRemoteObject
getContainer, getSfsbClientVersion, setSfsbClientVersion
-
Constructor Details
-
EJBObjectImpl
- Throws:
RemoteException
-
-
Method Details
-
getStub
-
getStub
-
getEJBObject
Get the Remote object corresponding to an EJBObjectImpl for the RemoteHome view. -
getEJBObject
Get the Remote object corresponding to an EJBObjectImpl for the RemoteBusiness view. -
setEJBObject
-
setEJBObject
-
isIdentical
- Specified by:
isIdenticalin interfacejakarta.ejb.EJBObject- Throws:
RemoteException
-
getPrimaryKey
- Specified by:
getPrimaryKeyin interfacejakarta.ejb.EJBObject- Throws:
RemoteException
-
getEJBHome
- Specified by:
getEJBHomein interfacejakarta.ejb.EJBObject- Throws:
RemoteException
-
remove
This is called when the EJB client does ejbref.remove(). or EJBHome/LocalHome.remove(primaryKey). Since there is no generated code in the *_EJBObjectImpl class for remove, we need to call preInvoke, postInvoke etc here.- Specified by:
removein interfacejakarta.ejb.EJBObject- Throws:
RemoteExceptionjakarta.ejb.RemoveException
-
getHandle
This is called when the EJB client does ejbref.getHandle(). Return a serializable implementation of jakarta.ejb.Handle.- Specified by:
getHandlein interfacejakarta.ejb.EJBObject- Throws:
RemoteException
-