org.jboss.ejb.plugins.cmp.jdbc
Class JDBCCustomFinderQuery

java.lang.Object
  extended by org.jboss.ejb.plugins.cmp.jdbc.JDBCCustomFinderQuery
All Implemented Interfaces:
JDBCQueryCommand

public final class JDBCCustomFinderQuery
extends Object
implements JDBCQueryCommand

CMPStoreManager 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 and/or the LocalHome interface.

Version:
$Revision: 57209 $
Author:
Michel de Groot, John Freeborg
See Also:
JDBCFindEntitiesCommand

Constructor Summary
JDBCCustomFinderQuery(JDBCStoreManager manager, Method finderMethod)
          Constructs a command which can handle multiple entity finders that are BMP implemented.
 
Method Summary
 Collection execute(Method unused, Object[] args, EntityEnterpriseContext ctx, GenericEntityObjectFactory factory)
           
 JDBCStoreManager getSelectManager()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCCustomFinderQuery

public JDBCCustomFinderQuery(JDBCStoreManager manager,
                             Method finderMethod)
Constructs a command which can handle multiple entity finders that are BMP implemented.

Parameters:
finderMethod - the EJB finder method implementation
Method Detail

getSelectManager

public JDBCStoreManager getSelectManager()
Specified by:
getSelectManager in interface JDBCQueryCommand

execute

public Collection execute(Method unused,
                          Object[] args,
                          EntityEnterpriseContext ctx,
                          GenericEntityObjectFactory factory)
                   throws javax.ejb.FinderException
Specified by:
execute in interface JDBCQueryCommand
Throws:
javax.ejb.FinderException


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