org.ow2.jonas.lib.ejb21
Class JSessionLocalHome
java.lang.Object
org.ow2.jonas.lib.ejb21.JLocalHome
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
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JSessionLocalHome
public JSessionLocalHome(SessionDesc dd,
JSessionFactory bf)
- constructor
- Parameters:
dd
- The Session Deployment Decriptorbf
- The Session Factory
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.