org.ow2.jonas.lib.ejb21
Class JSessionLocalHome

java.lang.Object
  extended by org.ow2.jonas.lib.ejb21.JLocalHome
      extended by org.ow2.jonas.lib.ejb21.JSessionLocalHome
All Implemented Interfaces:
EJBLocalHome
Direct Known Subclasses:
JRepStatefulLocalHome

public abstract class JSessionLocalHome
extends JLocalHome

This class is the Standard LocalHome for Session objects It exists only for beans that have declared a Local Interface. It implements javax.ejb.EJBLocalHome interface It implements a pool of EJBLocalObject's

Author:
Philippe Durieux

Field Summary
 
Fields inherited from class org.ow2.jonas.lib.ejb21.JLocalHome
bf, dd, homeList
 
Constructor Summary
JSessionLocalHome(SessionDesc dd, JSessionFactory bf)
          constructor
 
Method Summary
abstract  JSessionLocal createLocalObject()
          Creates the EJBLocalObject This is in the generated class because it is mainly "new objectClass()"
 void remove(Object pk)
          remove(pk) is not allowed for session beans
 
Methods inherited from class org.ow2.jonas.lib.ejb21.JLocalHome
checkSecurity, getJndiLocalName, getLocalHome, postInvoke, preInvoke, register, unregister
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSessionLocalHome

public JSessionLocalHome(SessionDesc dd,
                         JSessionFactory bf)
constructor

Parameters:
dd - The Session Deployment Decriptor
bf - The Session Factory
Method Detail

remove

public void remove(Object pk)
            throws EJBException,
                   RemoveException
remove(pk) is not allowed for session beans

Specified by:
remove in interface EJBLocalHome
Specified by:
remove in class JLocalHome
Parameters:
pk - the primary key
Throws:
RemoveException - Always.
EJBException

createLocalObject

public abstract JSessionLocal createLocalObject()
Creates the EJBLocalObject This is in the generated class because it is mainly "new objectClass()"

Returns:
The Local Object


Copyright © 2010 OW2 Consortium. All Rights Reserved.