Examples of executeInContext()


Examples of com.orientechnologies.orient.core.command.script.OCommandExecutorFunction.executeInContext()

        else
          args.put("param" + i, argValue);
      }
    }

    return command.executeInContext(iContext, args);
  }

  public Object execute(final Map<Object, Object> iArgs) {
    final long start = Orient.instance().getProfiler().startChrono();
View Full Code Here

Examples of com.orientechnologies.orient.core.metadata.function.OFunction.executeInContext()

       final OBasicCommandContext context = new OBasicCommandContext();
       context.setVariable("session", OHttpSessionManager.getInstance().getSession(iRequest.sessionId));
       context.setVariable("request", new OHttpRequestWrapper(iRequest, (String[]) args));
       context.setVariable("response", new OHttpResponseWrapper(iResponse));

       handleResult(iRequest, iResponse, f.executeInContext(context, args));

     } catch (OCommandScriptException e) {
       // EXCEPTION

       final StringBuilder msg = new StringBuilder(256);
View Full Code Here

Examples of com.orientechnologies.orient.core.metadata.function.OFunction.executeInContext()

      args = null;

    final OFunction f = ODatabaseRecordThreadLocal.INSTANCE.get().getMetadata().getFunctionLibrary().getFunction(function);
    if (f != null) {
      debug(iContext, "Calling database function: " + function + "(" + Arrays.toString(args) + ")...");
      return f.executeInContext(iContext, args);
    }

    int lastDot = function.lastIndexOf('.');
    if (lastDot > -1) {
      final String clsName = function.substring(0, lastDot);
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.