Exemplo n.º 1
0
 public gov.nih.nci.cagrid.cqlresultset.CQLQueryResults executeAndAggregateResults(
     gov.nih.nci.cagrid.dcql.DCQLQuery query)
     throws RemoteException, gov.nih.nci.cagrid.fqp.stubs.types.FederatedQueryProcessingFault {
   FederatedQueryEngine engine = new FederatedQueryEngine();
   CQLQueryResults results = null;
   try {
     results = engine.executeAndAggregateResults(query);
   } catch (FederatedQueryProcessingException e) {
     LOG.error("Problem executing query: " + e.getMessage(), e);
     FederatedQueryProcessingFault fault = new FederatedQueryProcessingFault();
     fault.setFaultString("Problem executing query: " + e.getMessage());
     FaultHelper helper = new FaultHelper(fault);
     helper.addFaultCause(e);
     throw helper.getFault();
   }
   return results;
 }