Examples of execute()


Examples of com.orientechnologies.orient.core.command.script.OCommandScript.execute()

    final OCommandScript script = new OCommandScript(language, code.toString());
    script.getContext().setParent(iContext);

    iContext.setVariable("block", this);

    return script.execute();
  }

  @Override
  public String getName() {
    return NAME;
View Full Code Here

Examples of com.orientechnologies.orient.core.sql.functions.OSQLFunctionRuntime.execute()

      return ((OSQLFilterCondition) iValue).evaluate(iRecord);

    if (iValue instanceof OSQLFunctionRuntime) {
      // STATELESS FUNCTION: EXECUTE IT
      final OSQLFunctionRuntime f = (OSQLFunctionRuntime) iValue;
      return f.execute(iRecord);
    }

    // SIMPLE VALUE: JUST RETURN IT
    return iValue;
  }
View Full Code Here

Examples of com.orientechnologies.orient.core.sql.methods.OSQLMethodRuntime.execute()

        method = op.getKey();

        // DON'T PASS THE CURRENT RECORD TO FORCE EVALUATING TEMPORARY RESULT
        method.setParameters(op.getValue(), true);

        ioResult = method.execute(ioResult, iRecord, ioResult, iContext);
      }
    }

    return ioResult;
  }
View Full Code Here

Examples of com.orientechnologies.orient.graph.migration.OGraphMigration.execute()

  }

  @ConsoleCommand(description = "Migrates graph from OMVRBTree to ORidBag")
  public void upgradeGraph() {
    OGraphMigration migration = new OGraphMigration(getCurrentDatabase(), this);
    migration.execute();
    message("Graph has been upgraded.");
  }
}
View Full Code Here

Examples of com.orientechnologies.orient.server.distributed.task.OAbstractRemoteTask.execute()

    try {
      if (database != null)
        ((ODistributedStorage) database.getStorage()).setLastOperationId(req.getId());

      final Serializable result = (Serializable) task.execute(serverInstance, this, database);

      if (result instanceof Throwable)
        ODistributedServerLog.error(this, getLocalNodeName(), req.getSenderNodeName(), DIRECTION.IN,
            "error on executing request %d (%s) on local node: ", (Throwable) result, req.getId(), req != null ? req.getTask()
                : "-");
View Full Code Here

Examples of com.orientechnologies.orient.server.network.protocol.http.command.OServerCommand.execute()

      if (cmd != null)
        try {
          if (cmd.beforeExecute(request))
            // EXECUTE THE COMMAND
            isChain = cmd.execute(request);

        } catch (Exception e) {
          handleError(e);
        }
      else {
View Full Code Here

Examples of com.pcmsolutions.system.callback.CallbackTask.execute()

            ct.init(new CallbackTaskRunnable() {
                public Object run() throws ComponentGenerationException, ChildViewNotAllowedException, LogicalHierarchyException {
                    return new Boolean(ZoeosFrame.getInstance().getZDesktopManager().addDesktopElement(elem));
                }
            });
            CallbackTaskResult ctr = ct.execute();
        }
    }

    public static void modifyBranch(final DesktopBranch branch, final boolean activate, final int clipIndex) {
        CallbackTask ct = new CallbackTask();
View Full Code Here

Examples of com.planet_ink.coffee_web.util.CWThreadExecutor.execute()

    }
    final List<Integer> todone=Collections.synchronizedList(new LinkedList<Integer>());
    while(todo.size()>0)
    {
      final Integer myObject = todo.removeFirst();
      executor.execute(new Runnable(){
        @Override
        public void run()
        {
          if(random.nextInt(10)>5)
            try{Thread.sleep(random.nextInt(10));}catch(Exception e){}
View Full Code Here

Examples of com.ponysdk.sample.command.pony.CreatePonyCommand.execute()

            @Override
            public boolean onOK(final PDialogBox p) {
                if (createPony.isValid()) {
                    final Pony pony = new Pony(null, nameFormField.getValue(), ageFormField.getValue(), raceFormField.getValue());
                    final CreatePonyCommand command = new CreatePonyCommand(pony);
                    final Pony newPony = command.execute();
                    if (command.isSuccessfull()) {
                        final PonyCreatedEvent event = new PonyCreatedEvent(this, newPony);
                        event.setBusinessMessage("Pony '" + newPony.getName() + "' has been added");
                        fireEvent(event);
                    }
View Full Code Here

Examples of com.ponysdk.sample.command.pony.FindPonyChildsCommand.execute()

    @Override
    public void onShowSubList(final ShowSubListEvent<Pony> event) {
        if (event.isShow()) {
            final FindPonyChildsCommand command = new FindPonyChildsCommand(event.getData().getId());
            final Result<List<Pony>> result = command.execute();
            if (command.isSuccessfull()) {
                complexListActivity.insertSubList(event.getRow(), result.getData());
            }
        } else {
            complexListActivity.removeSubList(event.getRow());
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.