org.jboss.ejb.plugins.jaws.bmp
Class CustomFindByEntitiesCommand

java.lang.Object
  extended byorg.jboss.ejb.plugins.jaws.bmp.CustomFindByEntitiesCommand
All Implemented Interfaces:
JPMFindEntitiesCommand

public class CustomFindByEntitiesCommand
extends Object
implements JPMFindEntitiesCommand

JAWSPersistenceManager CustomFindByEntitiesCommand. Implements bridge for custom implemented finders in container managed entity beans. These methods are called ejbFindX in the EJB implementation class, where X can be anything. Such methods are called findX in the Home interface. The EJB implementation must return a Collection of primary keys.

Version:
$Revision: 1.13 $
Author:
Michel de Groot
See Also:
JDBCFindEntitiesCommand

Field Summary
protected  Method finderImplMethod
          The method implementing the finder.
protected  String name
          Command name, used for debug trace.
 
Constructor Summary
CustomFindByEntitiesCommand(Method finderMethod)
          Constructs a JAWS command which can handle multiple entity finders that are BMP implemented.
 
Method Summary
 Collection execute(Method finderMethod, Object[] args, EntityEnterpriseContext ctx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

finderImplMethod

protected Method finderImplMethod
The method implementing the finder.


name

protected String name
Command name, used for debug trace.

Constructor Detail

CustomFindByEntitiesCommand

public CustomFindByEntitiesCommand(Method finderMethod)
                            throws IllegalArgumentException
Constructs a JAWS command which can handle multiple entity finders that are BMP implemented.

Parameters:
finderMethod - the EJB finder method implementation
Method Detail

execute

public Collection execute(Method finderMethod,
                          Object[] args,
                          EntityEnterpriseContext ctx)
                   throws Exception
Specified by:
execute in interface JPMFindEntitiesCommand
Throws:
Exception


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.