com.sun.ejb.containers
Class EJBObjectImpl
java.lang.Object
com.sun.ejb.containers.EJBLocalRemoteObject
com.sun.ejb.containers.EJBObjectImpl
- All Implemented Interfaces:
- java.rmi.Remote, EJBObject
- Direct Known Subclasses:
- EJBObjectInvocationHandler
public abstract class EJBObjectImpl
- extends EJBLocalRemoteObject
- implements 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).
|
Method Summary |
EJBHome |
getEJBHome()
|
java.rmi.Remote |
getEJBObject()
Get the Remote object corresponding to an EJBObjectImpl for
the RemoteHome view. |
java.rmi.Remote |
getEJBObject(java.lang.String generatedBusinessInterface)
Get the Remote object corresponding to an EJBObjectImpl for
the RemoteBusiness view. |
Handle |
getHandle()
This is called when the EJB client does ejbref.getHandle(). |
java.lang.Object |
getPrimaryKey()
|
java.rmi.Remote |
getStub()
|
java.rmi.Remote |
getStub(java.lang.String generatedBusinessInterface)
|
boolean |
isIdentical(EJBObject ejbo)
|
void |
remove()
This is called when the EJB client does ejbref.remove(). |
void |
setEJBObject(java.rmi.Remote ejbObject)
|
void |
setEJBObject(java.lang.String generatedBusinessInterface,
java.rmi.Remote ejbObject)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EJBObjectImpl
protected EJBObjectImpl()
throws java.rmi.RemoteException
- Throws:
java.rmi.RemoteException
getStub
public final java.rmi.Remote getStub()
getStub
public final java.rmi.Remote getStub(java.lang.String generatedBusinessInterface)
getEJBObject
public java.rmi.Remote getEJBObject()
- Get the Remote object corresponding to an EJBObjectImpl for
the RemoteHome view.
getEJBObject
public java.rmi.Remote getEJBObject(java.lang.String generatedBusinessInterface)
- Get the Remote object corresponding to an EJBObjectImpl for
the RemoteBusiness view.
setEJBObject
public void setEJBObject(java.rmi.Remote ejbObject)
setEJBObject
public void setEJBObject(java.lang.String generatedBusinessInterface,
java.rmi.Remote ejbObject)
isIdentical
public boolean isIdentical(EJBObject ejbo)
throws java.rmi.RemoteException
- Specified by:
isIdentical in interface EJBObject
- Throws:
java.rmi.RemoteException
getPrimaryKey
public java.lang.Object getPrimaryKey()
throws java.rmi.RemoteException
- Specified by:
getPrimaryKey in interface EJBObject
- Throws:
java.rmi.RemoteException
getEJBHome
public final EJBHome getEJBHome()
throws java.rmi.RemoteException
- Specified by:
getEJBHome in interface EJBObject
- Throws:
java.rmi.RemoteException
remove
public final void remove()
throws java.rmi.RemoteException,
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 interface EJBObject
- Throws:
java.rmi.RemoteException
RemoveException
getHandle
public final Handle getHandle()
throws java.rmi.RemoteException
- This is called when the EJB client does ejbref.getHandle().
Return a serializable implementation of javax.ejb.Handle.
- Specified by:
getHandle in interface EJBObject
- Throws:
java.rmi.RemoteException
Copyright © 2012 GlassFish Community. All Rights Reserved.