com.sun.ejb.containers
Class EJBLocalHomeImpl

java.lang.Object
  extended by com.sun.ejb.containers.EJBLocalHomeImpl
All Implemented Interfaces:
IndirectlySerializable, EJBLocalHome
Direct Known Subclasses:
ReadOnlyEJBLocalHomeImpl

public abstract class EJBLocalHomeImpl
extends Object
implements 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

Nested Class Summary
static class EJBLocalHomeImpl.SerializableLocalHome
           
 
Field Summary
protected  BaseContainer container
           
 
Constructor Summary
EJBLocalHomeImpl()
           
 
Method Summary
protected  EJBLocalObjectImpl createEJBLocalBusinessObjectImpl(String intfName)
          Create a new EJBLocalBusinessObjectImpl and new EJB if necessary.
protected  EJBLocalObjectImpl createEJBLocalObjectImpl()
          Create a new EJBLocalObjectImpl and new EJB if necessary.
protected  BaseContainer getContainer()
          Called from concrete EJBLocalHome implementation.
protected  EJBLocalHome getEJBLocalHome()
          Get the EJBLocalHome corresponding to an EJBLocalHomeImpl.
 SerializableObjectFactory getSerializableObjectFactory()
           
 void remove(Object primaryKey)
          This is the implementation of the javax.ejb.EJBLocalHome remove method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

container

protected BaseContainer container
Constructor Detail

EJBLocalHomeImpl

public EJBLocalHomeImpl()
Method Detail

getContainer

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


getEJBLocalHome

protected 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 final EJBLocalObjectImpl createEJBLocalObjectImpl()
                                                     throws 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:
CreateException

createEJBLocalBusinessObjectImpl

protected final EJBLocalObjectImpl createEJBLocalBusinessObjectImpl(String intfName)
                                                             throws CreateException
Create a new EJBLocalBusinessObjectImpl and new EJB if necessary.

Parameters:
s -
Throws:
CreateException

remove

public final void remove(Object primaryKey)
                  throws RemoveException,
                         EJBException
This is the implementation of the javax.ejb.EJBLocalHome remove method.

Specified by:
remove in interface EJBLocalHome
Throws:
RemoveException
EJBException

getSerializableObjectFactory

public SerializableObjectFactory getSerializableObjectFactory()
Specified by:
getSerializableObjectFactory in interface IndirectlySerializable


Copyright © 2012 GlassFish Community. All Rights Reserved.