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 protected
EJBHomeImpl()
This constructor is called from an EJBHome implementation's constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EJBObjectImpl
createEJBObjectImpl()
Create a new EJBObject and new EJB if necessary.EJBObjectImpl
createRemoteBusinessObjectImpl()
protected Container
getContainer()
Called from EJBHome implementation.protected jakarta.ejb.EJBHome
getEJBHome()
Get the EJBHome corresponding to an EJBHomeImpl.jakarta.ejb.EJBMetaData
getEJBMetaData()
This is the implementation of the jakarta.ejb.EJBHome method.jakarta.ejb.HomeHandle
getHomeHandle()
This is the implementation of the jakarta.ejb.EJBHome getHomeHandle method.void
remove(jakarta.ejb.Handle handle)
This is the implementation of the jakarta.ejb.EJBHome remove method.void
remove(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 RemoteException
This 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:
RemoteException
jakarta.ejb.CreateException
-
createRemoteBusinessObjectImpl
public EJBObjectImpl createRemoteBusinessObjectImpl() throws RemoteException, jakarta.ejb.CreateException
- Throws:
RemoteException
jakarta.ejb.CreateException
-
remove
public final void remove(jakarta.ejb.Handle handle) throws RemoteException, jakarta.ejb.RemoveException
This is the implementation of the jakarta.ejb.EJBHome remove method.- Specified by:
remove
in 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:
remove
in interfacejakarta.ejb.EJBHome
- Throws:
jakarta.ejb.RemoveException
- on error during removalRemoteException
-
getEJBMetaData
public final jakarta.ejb.EJBMetaData getEJBMetaData() throws RemoteException
This is the implementation of the jakarta.ejb.EJBHome method.- Specified by:
getEJBMetaData
in interfacejakarta.ejb.EJBHome
- Throws:
RemoteException
-
getHomeHandle
public final jakarta.ejb.HomeHandle getHomeHandle() throws RemoteException
This is the implementation of the jakarta.ejb.EJBHome getHomeHandle method.- Specified by:
getHomeHandle
in interfacejakarta.ejb.EJBHome
- Throws:
RemoteException
-
-