Package com.sun.ejb.containers
Class EJBHomeImpl
- java.lang.Object
-
- com.sun.ejb.containers.EJBHomeImpl
-
- All Implemented Interfaces:
jakarta.ejb.EJBHome,Remote
- Direct Known Subclasses:
EJBHomeInvocationHandler
public abstract class EJBHomeImpl extends Object implements jakarta.ejb.EJBHome
This class implements the EJBHome interface. This class is also the base class for all generated concrete EJBHome implementations. At deployment time, one instance of the EJBHome is created for each EJB class in a JAR that has a remote home.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedEJBHomeImpl()This constructor is called from an EJBHome implementation's constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EJBObjectImplcreateEJBObjectImpl()Create a new EJBObject and new EJB if necessary.EJBObjectImplcreateRemoteBusinessObjectImpl()protected ContainergetContainer()Called from EJBHome implementation.protected jakarta.ejb.EJBHomegetEJBHome()Get the EJBHome corresponding to an EJBHomeImpl.jakarta.ejb.EJBMetaDatagetEJBMetaData()This is the implementation of the jakarta.ejb.EJBHome method.jakarta.ejb.HomeHandlegetHomeHandle()This is the implementation of the jakarta.ejb.EJBHome getHomeHandle method.voidremove(jakarta.ejb.Handle handle)This is the implementation of the jakarta.ejb.EJBHome remove method.voidremove(Object primaryKey)This is the implementation of the jakarta.ejb.EJBHome remove method.
-
-
-
Field Detail
-
_logger
protected static final Logger _logger
-
-
Constructor Detail
-
EJBHomeImpl
protected EJBHomeImpl() throws RemoteExceptionThis constructor is called from an EJBHome implementation's constructor.- Throws:
RemoteException
-
-
Method Detail
-
getContainer
protected final Container getContainer()
Called from EJBHome implementation.
-
getEJBHome
protected jakarta.ejb.EJBHome getEJBHome()
Get the EJBHome corresponding to an EJBHomeImpl. These objects are one and the same when the home is generated, but distinct in the case of dynamic proxies. Therefore, code can't assume it can cast an EJBHomeImpl to the EJBHome that the client uses, and vice-versa. This is overridden in the InvocationHandler.
-
createEJBObjectImpl
public EJBObjectImpl createEJBObjectImpl() throws RemoteException, jakarta.ejb.CreateException
Create a new EJBObject and new EJB if necessary. This is called from the generated "HelloEJBHomeImpl" create method. Return the EJBObject for the bean.- Throws:
RemoteExceptionjakarta.ejb.CreateException
-
createRemoteBusinessObjectImpl
public EJBObjectImpl createRemoteBusinessObjectImpl() throws RemoteException, jakarta.ejb.CreateException
- Throws:
RemoteExceptionjakarta.ejb.CreateException
-
remove
public final void remove(jakarta.ejb.Handle handle) throws RemoteException, jakarta.ejb.RemoveExceptionThis is the implementation of the jakarta.ejb.EJBHome remove method.- Specified by:
removein interfacejakarta.ejb.EJBHome- Throws:
jakarta.ejb.RemoveException- on error during removalRemoteException
-
remove
public final void remove(Object primaryKey) throws RemoteException, jakarta.ejb.RemoveException
This is the implementation of the jakarta.ejb.EJBHome remove method.- Specified by:
removein interfacejakarta.ejb.EJBHome- Throws:
jakarta.ejb.RemoveException- on error during removalRemoteException
-
getEJBMetaData
public final jakarta.ejb.EJBMetaData getEJBMetaData() throws RemoteExceptionThis is the implementation of the jakarta.ejb.EJBHome method.- Specified by:
getEJBMetaDatain interfacejakarta.ejb.EJBHome- Throws:
RemoteException
-
getHomeHandle
public final jakarta.ejb.HomeHandle getHomeHandle() throws RemoteExceptionThis is the implementation of the jakarta.ejb.EJBHome getHomeHandle method.- Specified by:
getHomeHandlein interfacejakarta.ejb.EJBHome- Throws:
RemoteException
-
-