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
public abstract class EJBObjectImpl extends EJBLocalRemoteObject implements jakarta.ejb.EJBObject
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 Modifier Constructor Description protected
EJBObjectImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.ejb.EJBHome
getEJBHome()
Remote
getEJBObject()
Get the Remote object corresponding to an EJBObjectImpl for the RemoteHome view.Remote
getEJBObject(String generatedBusinessInterface)
Get the Remote object corresponding to an EJBObjectImpl for the RemoteBusiness view.jakarta.ejb.Handle
getHandle()
This is called when the EJB client does ejbref.getHandle().Object
getPrimaryKey()
Remote
getStub()
Remote
getStub(String generatedBusinessInterface)
boolean
isIdentical(jakarta.ejb.EJBObject ejbo)
void
remove()
This is called when the EJB client does ejbref.remove().void
setEJBObject(String generatedBusinessInterface, Remote ejbObject)
void
setEJBObject(Remote ejbObject)
-
Methods inherited from class com.sun.ejb.containers.EJBLocalRemoteObject
getContainer, getSfsbClientVersion, setSfsbClientVersion
-
-
-
-
Constructor Detail
-
EJBObjectImpl
protected EJBObjectImpl() throws RemoteException
- Throws:
RemoteException
-
-
Method Detail
-
getStub
public final Remote getStub()
-
getEJBObject
public Remote getEJBObject()
Get the Remote object corresponding to an EJBObjectImpl for the RemoteHome view.
-
getEJBObject
public Remote getEJBObject(String generatedBusinessInterface)
Get the Remote object corresponding to an EJBObjectImpl for the RemoteBusiness view.
-
setEJBObject
public void setEJBObject(Remote ejbObject)
-
isIdentical
public boolean isIdentical(jakarta.ejb.EJBObject ejbo) throws RemoteException
- Specified by:
isIdentical
in interfacejakarta.ejb.EJBObject
- Throws:
RemoteException
-
getPrimaryKey
public Object getPrimaryKey() throws RemoteException
- Specified by:
getPrimaryKey
in interfacejakarta.ejb.EJBObject
- Throws:
RemoteException
-
getEJBHome
public final jakarta.ejb.EJBHome getEJBHome() throws RemoteException
- Specified by:
getEJBHome
in interfacejakarta.ejb.EJBObject
- Throws:
RemoteException
-
remove
public final void remove() throws RemoteException, jakarta.ejb.RemoveException
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:
remove
in interfacejakarta.ejb.EJBObject
- Throws:
RemoteException
jakarta.ejb.RemoveException
-
getHandle
public final jakarta.ejb.Handle getHandle() throws RemoteException
This is called when the EJB client does ejbref.getHandle(). Return a serializable implementation of jakarta.ejb.Handle.- Specified by:
getHandle
in interfacejakarta.ejb.EJBObject
- Throws:
RemoteException
-
-