Package dovetaildb.scriptbridge

Examples of dovetaildb.scriptbridge.UniversalScriptBridge


    } else if (req.action == "execute") {
      String code = req.request.getParameter("code");
      ArrayList<Pair<String,String>> codeFiles = new ArrayList<Pair<String,String>>(1);
      codeFiles.set(0, new Pair<String, String>("<execute code>", code));
      Map<String,Object> env = Util.literalMap().p("dovetaildb", api);
      returnVal = (new UniversalScriptBridge()).evaluateExpression(req.scriptLanguage+":"+codeFiles, env);
    } else if (req.action == "query") {
      String query = req.request.getParameter("query");
      returnVal = api.query(req.bagName, (List)Util.jsonDecode(query), null);
    } else if (req.action == "insert") {
      Map<String,Object> entry = (Map<String,Object>)Util.jsonDecode(req.request.getParameter("entry"));
View Full Code Here

TOP

Related Classes of dovetaildb.scriptbridge.UniversalScriptBridge

Copyright © 2018 www.massapicom. 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.