1 22 package org.jboss.ejb.plugins.cmp.jdbc; 23 24 import java.lang.reflect.Method ; 25 import java.util.Collection ; 26 import javax.ejb.FinderException ; 27 28 import org.jboss.ejb.EntityEnterpriseContext; 29 import org.jboss.ejb.GenericEntityObjectFactory; 30 31 41 public final class JDBCFindEntitiesCommand 42 { 43 private final JDBCStoreManager manager; 44 45 public JDBCFindEntitiesCommand(JDBCStoreManager manager) 46 { 47 this.manager = manager; 48 } 49 50 public Collection execute(Method finderMethod, Object [] args, EntityEnterpriseContext ctx, GenericEntityObjectFactory factory) 51 throws FinderException 52 { 53 JDBCQueryCommand query = manager.getQueryManager().getQueryCommand(finderMethod); 54 return query.execute(finderMethod, args, ctx, factory); 55 } 56 } 57 | Popular Tags |