Examples of execute()


Examples of org.nanocontainer.nanowar.sample.webwork1.CheeseAction.execute()

       
        CheeseAction action = new CheeseAction(service);
        action.getCheese().setName("gouda");
        action.getCheese().setCountry("Netherlands");
        action.setCommand("save");
        assertEquals(CheeseAction.SUCCESS,action.execute());

        // Cheddar exists already -- count 1

        assertEquals(2, service.getCheeses().size());
       
View Full Code Here

Examples of org.neo4j.cypher.ExecutionEngine.execute()


        //Give me all the vehicle associated with the procedures that are part of the emergency that was created by this phoneCallId
        Query query = parser.parse("start n=(calls, 'callId:" + call.getId() + "')  match (n)-[r:CREATES]->(x)-[i:INSTANTIATE]-> (w) -[u:USE]->v  return v");

        ExecutionResult result = engine.execute(query);
        Iterator<Node> n_column = result.columnAs("v");


        System.out.println("results: " + result);
        assertEquals(2, result.size());
View Full Code Here

Examples of org.neo4j.cypher.javacompat.ExecutionEngine.execute()

  protected ExecutionResult executeCypherQuery(String query, Map<String, Object> parameters) throws Exception {
    SessionFactoryImplementor sessionFactory = (SessionFactoryImplementor) ( (OgmEntityManagerFactory) getFactory() ).getSessionFactory();
    Neo4jDatastoreProvider provider = (Neo4jDatastoreProvider) sessionFactory.getServiceRegistry().getService( DatastoreProvider.class );
    ExecutionEngine engine = new ExecutionEngine( provider.getDataBase() );
    ExecutionResult result = engine.execute( query, parameters );
    return result;
  }

  private Long executeQuery(String queryString) throws Exception {
    getTransactionManager().begin();
View Full Code Here

Examples of org.nutz.socialauth.alipay.util.httpClient.HttpProtocolHandler.execute()

        request.setCharset(AlipayConfig.input_charset);

        request.setParameters(generatNameValuePair(sPara));
        request.setUrl(gateway+"_input_charset="+AlipayConfig.input_charset);

        HttpResponse response = httpProtocolHandler.execute(request);
        if (response == null) {
            return null;
        }
       
        String strResult = response.getStringResult();
View Full Code Here

Examples of org.objectstyle.woproject.ant.JApplication.execute()

    // add main project artifact
    addArtifact(task, project.getArtifact(), includesMatcher, excludesMatcher);

    try {
      task.execute();
    } catch (BuildException e) {
      throw new MojoExecutionException("Failed to build application " + name, e);
    }
  }
View Full Code Here

Examples of org.odbms.Query.execute()

        }
      }
    });
    query.constrain("DTITLE", OP.STARTS_WITH, "John");

    ObjectSet<Disc> discs = query.execute();
    for (Disc disc : discs) {
      if (disc.getAge() > 3)
        fail("Disc age >3");
      if (!disc.getDTITLE().startsWith("John"))
        fail("DTITLE does not start with 'John'");
View Full Code Here

Examples of org.odmg.OQLQuery.execute()

        tx.begin();
        OQLQuery query = odmg.newOQLQuery();
        query.create("select shops from " + Shop.class.getName() + " where name like $1");
        query.bind(name + "%");
        Collection result = (Collection) query.execute();

        assertEquals(2, result.size());

        query = odmg.newOQLQuery();
        query.create("select shops from " + Distributor.class.getName() + " where name like $1");
View Full Code Here

Examples of org.ofbiz.service.xmlrpc.XmlRpcClient.execute()

            }
        }
       
        List<Map<String,Object>> listParams = UtilMisc.toList(params);
        try{
            result = UtilGenerics.cast(client.execute(serviceName, listParams.toArray()));
        }catch (XmlRpcException e) {
            result = ServiceUtil.returnError(e.getLocalizedMessage());
        }
        return result;
    }
View Full Code Here

Examples of org.ogce.gfac.provider.Provider.execute()

    buildChains(getPreExecutionSteps(context)).start(context);

    /*
     * Execute
     */
    provider.execute(context);

    /*
     * Post-Execution
     */
    buildChains(getPostExecuteSteps(context)).start(context);
 
View Full Code Here

Examples of org.olat.core.dispatcher.mapper.MapperRegistry.execute()

         // OLAT-5368: an intermediate commit is necessary here to close open transactions which could otherwise
         // run into the 2 min timeout and cause errors. The code does a return after serving the file anyway
         // and would do a commit right there as well - so this doesn't break the transaction semantics.
         DBFactory.getInstance(false).intermediateCommit();
        
        mreg.execute(request, response, subtractContextPath(request, pathInfo));
        return;
      } else if (pathInfo.startsWith(PATH_GLOBAL_MAPPED)) {
        // Dynamic files that can be cached by browsers based on last modified
        // date, but are dynamically created by the application
        gmr.execute(request, response, subtractContextPath(request, pathInfo));
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.