Examples of execute()


Examples of org.apache.tuscany.das.rdb.ApplyChangesCommand.execute()

        // Modify the first order and flush this change back to the database
        root.setString("CUSTOMER[1]/orders[1]/PRODUCT", "Defibrillator");
        Integer orderId = (Integer) root.get("CUSTOMER[1]/orders[1]/ID");
        ApplyChangesCommand flush = commandGroup.getApplyChangesCommand();
        flush.execute(root);

        // Verify
        Command orderByID = commandGroup.getCommand("order by id");
        orderByID.setParameterValue("ID", orderId);
        assertEquals("Defibrillator", root.getString("ANORDER[1]/PRODUCT"));
View Full Code Here

Examples of org.apache.tuscany.das.rdb.Command.execute()

            DAS das = DAS.FACTORY.createDAS(getConnection());
            Command insert = das.createCommand("insert into customers (firstName,lastName,address,email, loginID, password  ) values ('"
                    + customerProfile.getFirstName() + "', '" + customerProfile.getLastName() + "', '" + customerProfile.getAddress() + "', '"
                    + customerProfile.getEmail() + "', '" + customerProfile.getLoginID() + "', '" + customerProfile.getPassword() + "')");

            insert.execute();
            CustomerProfileData ret = getCustomerProfile(customerProfile.getLoginID());
            String cid = ret.getId() + "";
            if (createSavings) {
                insert = das.createCommand("insert into accounts (id,accountNumber, accountType, balance  ) values (" + cid + ", '"
                        + AccountServiceImpl.SAVINGS_ACCOUNT_PREFIX + cid + "', '" + AccountServiceImpl.ACCOUNT_TYPE_SAVINGS + "', " + 1.0F + ")");
View Full Code Here

Examples of org.apache.uima.ducc.cli.DuccManagedReservationSubmit.execute()

        addArg(cmdLine, "--"+UiOption.AttachConsole.pname());    // Always return console output to match "local"

        String[] argList = cmdLine.toArray(new String[cmdLine.size()]);
       
        DuccManagedReservationSubmit mr = new DuccManagedReservationSubmit(argList, consoleCb);
        boolean rc = mr.execute();
       
        String dt = "Managed Reservation";
       
        if (rc) {
            String line = dt + " " + mr.getDuccId() + " submitted.";
View Full Code Here

Examples of org.apache.uima.ducc.common.launcher.ssh.DuccRemoteLauncher.execute()

          sshUser, sshIdentityLocation, System.out);
      //remoteLauncher.initialize();
      List<Future<ProcessCompletionResult>> results = new ArrayList<Future<ProcessCompletionResult>>();

      while ((strLine = br.readLine()) != null) {
        results.add(remoteLauncher.execute(strLine.trim(), command,
            this));
      }
      // Close the input stream
      in.close();
      for (Future<ProcessCompletionResult> result : results) {
View Full Code Here

Examples of org.apache.velocity.runtime.parser.node.ASTReference.execute()

            {
                ASTReference ref = (ASTReference) astNode;

                if (ref.jjtGetNumChildren() > 0)
                {
                    return ref.execute(null, wrappedContext);
                }
                else
                {
                    Object obj = wrappedContext.get(ref.getRootString());
                    if (obj == null && ref.strictRef)
View Full Code Here

Examples of org.apache.velocity.runtime.parser.node.SimpleNode.execute()

                {
                    /* save the values - for now, just w/ ref to test */

                    if (child.getType() == ParserTreeConstants.JJTREFERENCE)
                    {
                        data.put(child, child.execute(null, context));
                    }
                    else
                    {
                        System.out.println("unhandled type");
                    }
View Full Code Here

Examples of org.apache.vysper.xmpp.modules.core.base.handler.IQHandler.execute()

        IQHandler infoIQHandler = createDiscoIQHandler();

        StanzaBuilder request = buildRequest();
       
        ResponseStanzaContainer resultStanzaContainer = infoIQHandler.execute(request.build(), serverRuntimeContext, false, new TestSessionContext(serverRuntimeContext, new SessionStateHolder()), null);
        Stanza resultStanza = resultStanzaContainer.getResponseStanza();

        assertEquals("Disco request must not return error", "result", resultStanza.getAttributeValue("type"));
        XMLElement queryElement = resultStanza.getFirstInnerElement();
       
View Full Code Here

Examples of org.apache.vysper.xmpp.protocol.StanzaHandler.execute()

            return;
        }

        ResponseStanzaContainer responseStanzaContainer = null;
        try {
            responseStanzaContainer = stanzaHandler.execute(stanza, serverRuntimeContext, false, sessionContext, sessionStateHolder);
        } catch (ProtocolException e) {
            e.printStackTrace()//To change body of catch statement use File | Settings | File Templates.
        }

        if (responseStanzaContainer != null && responseStanzaContainer.getResponseStanza() != null) {
View Full Code Here

Examples of org.apache.webdav.lib.methods.MkcolMethod.execute()

          URI userUri = new URIValue(users+username);
          MkcolMethod mkcolMethod = new MkcolMethod(domain+userUri.toString());
          mkcolMethod.setDoAuthentication(true);
            HttpState httpState = new HttpState();
            httpState.setCredentials(null, host, credentials);
            int state = mkcolMethod.execute(httpState, new HttpConnection(host, port, protocol));
            if ( state == HttpStatus.SC_CREATED ) {
              changePassword(userUri, null, password, credentials);
              return userUri;
            }
            return null;
View Full Code Here

Examples of org.apache.webdav.lib.methods.OptionsMethod.execute()

            HttpConnection conn = new HttpConnection(url.getHost(), url.getPort());
            WebdavResource resource = new WebdavResource(new HttpURL(this.targetUrl));
            if(!resource.exists()) {
                throw new SAXException("The WebDAV resource don't exist");
            }
            optionsMethod.execute(state, conn);
            if(!optionsMethod.isAllowed("SEARCH")) {
                throw new SAXException("The server don't support the SEARCH method");
            }
            searchMethod.execute(state, conn);
            Enumeration enumeration = searchMethod.getAllResponseURLs();
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.