com.sun.ejb.containers
Class EJBHomeImpl

java.lang.Object
  extended by com.sun.ejb.containers.EJBHomeImpl
All Implemented Interfaces:
java.rmi.Remote, EJBHome
Direct Known Subclasses:
ReadOnlyEJBHomeImpl

public abstract class EJBHomeImpl
extends java.lang.Object
implements 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.


Field Summary
protected static java.util.logging.Logger _logger
           
 
Constructor Summary
protected EJBHomeImpl()
          This constructor is called from an EJBHome implementation's constructor.
 
Method Summary
 EJBObjectImpl createEJBObjectImpl()
          Create a new EJBObject and new EJB if necessary.
 EJBObjectImpl createRemoteBusinessObjectImpl()
           
protected  Container getContainer()
          Called from EJBHome implementation.
protected  EJBHome getEJBHome()
          Get the EJBHome corresponding to an EJBHomeImpl.
 EJBMetaData getEJBMetaData()
          This is the implementation of the javax.ejb.EJBHome method.
 HomeHandle getHomeHandle()
          This is the implementation of the javax.ejb.EJBHome getHomeHandle method.
 void remove(Handle handle)
          This is the implementation of the javax.ejb.EJBHome remove method.
 void remove(java.lang.Object primaryKey)
          This is the implementation of the javax.ejb.EJBHome remove method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_logger

protected static final java.util.logging.Logger _logger
Constructor Detail

EJBHomeImpl

protected EJBHomeImpl()
               throws java.rmi.RemoteException
This constructor is called from an EJBHome implementation's constructor.

Throws:
java.rmi.RemoteException
Method Detail

getContainer

protected final Container getContainer()
Called from EJBHome implementation.


getEJBHome

protected 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 final EJBObjectImpl createEJBObjectImpl()
                                        throws java.rmi.RemoteException,
                                               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:
java.rmi.RemoteException
CreateException

createRemoteBusinessObjectImpl

public EJBObjectImpl createRemoteBusinessObjectImpl()
                                             throws java.rmi.RemoteException,
                                                    CreateException
Throws:
java.rmi.RemoteException
CreateException

remove

public final void remove(Handle handle)
                  throws java.rmi.RemoteException,
                         RemoveException
This is the implementation of the javax.ejb.EJBHome remove method.

Specified by:
remove in interface EJBHome
Throws:
RemoveException - on error during removal
java.rmi.RemoteException

remove

public final void remove(java.lang.Object primaryKey)
                  throws java.rmi.RemoteException,
                         RemoveException
This is the implementation of the javax.ejb.EJBHome remove method.

Specified by:
remove in interface EJBHome
Throws:
RemoveException - on error during removal
java.rmi.RemoteException

getEJBMetaData

public final EJBMetaData getEJBMetaData()
                                 throws java.rmi.RemoteException
This is the implementation of the javax.ejb.EJBHome method.

Specified by:
getEJBMetaData in interface EJBHome
Throws:
java.rmi.RemoteException

getHomeHandle

public final HomeHandle getHomeHandle()
                               throws java.rmi.RemoteException
This is the implementation of the javax.ejb.EJBHome getHomeHandle method.

Specified by:
getHomeHandle in interface EJBHome
Throws:
java.rmi.RemoteException


Copyright © 2012 GlassFish Community. All Rights Reserved.