Class EJBLocalHomeImpl

  • All Implemented Interfaces:
    IndirectlySerializable, jakarta.ejb.EJBLocalHome
    Direct Known Subclasses:
    EJBLocalHomeInvocationHandler

    public abstract class EJBLocalHomeImpl
    extends Object
    implements jakarta.ejb.EJBLocalHome, IndirectlySerializable
    Implementation of the EJBLocalHome interface. This class is also the base class for all generated concrete EJBLocalHome implementations. At deployment time, one instance of the EJBLocalHome is created for each EJB class in a JAR that has a local home.
    Author:
    Mahesh Kannan
    • Constructor Detail

      • EJBLocalHomeImpl

        public EJBLocalHomeImpl()
    • Method Detail

      • getContainer

        protected final BaseContainer getContainer()
        Called from concrete EJBLocalHome implementation.
      • getEJBLocalHome

        protected jakarta.ejb.EJBLocalHome getEJBLocalHome()
        Get the EJBLocalHome corresponding to an EJBLocalHomeImpl. These objects are one and the same when the local home is generated, but distinct in the case of dynamic proxies. Therefore, code can't assume it can cast an EJBLocalHomeImpl to the EJBLocalHome that the client uses, and vice-versa. This is overridden in the InvocationHandler.
      • createEJBLocalObjectImpl

        protected EJBLocalObjectImpl createEJBLocalObjectImpl()
                                                       throws jakarta.ejb.CreateException
        Create a new EJBLocalObjectImpl and new EJB if necessary. This is called from the concrete "HelloEJBHomeImpl" create method. Return the EJBObjectImpl for the bean.
        Throws:
        jakarta.ejb.CreateException
      • createEJBLocalBusinessObjectImpl

        protected final EJBLocalObjectImpl createEJBLocalBusinessObjectImpl​(String intfName)
                                                                     throws jakarta.ejb.CreateException
        Create a new EJBLocalBusinessObjectImpl and new EJB if necessary.
        Parameters:
        intfName -
        Throws:
        jakarta.ejb.CreateException
      • remove

        public final void remove​(Object primaryKey)
                          throws jakarta.ejb.RemoveException,
                                 jakarta.ejb.EJBException
        This is the implementation of the jakarta.ejb.EJBLocalHome remove method.
        Specified by:
        remove in interface jakarta.ejb.EJBLocalHome
        Throws:
        jakarta.ejb.RemoveException
        jakarta.ejb.EJBException