Examples of createExpression()


Examples of com.webobjects.eoaccess.EOSQLExpressionFactory.createExpression()

      EOQualifier qualifier = entity.restrictingQualifier();
      if (qualifier != null) {
        EOAdaptor adaptor = EOAdaptor.adaptorWithName("JDBC");
        adaptor.setConnectionDictionary(_sourceDictionary);
        EOSQLExpressionFactory factory = adaptor.expressionFactory();
        EOSQLExpression sqlExpression = factory.createExpression(entity);
        String sqlString = EOQualifierSQLGeneration.Support._sqlStringForSQLExpression(qualifier, sqlExpression);
        selectBuf.append(" where ").append(sqlString);
      }
      selectBuf.append(';');
      String sql = selectBuf.toString();
View Full Code Here

Examples of net.sf.saxon.sxpath.XPathEvaluator.createExpression()

      Source s = null;
        try {
          s = convertToSource(doc);
            XPathEvaluator eval = new XPathEvaluator();
            // Wrap the string() function to force a string return            
            XPathExpression expr = eval.createExpression(xpath);
            Object o = expr.evaluateSingle(s);
           
            if(o == null) {
                return null;
            }
View Full Code Here

Examples of net.sf.saxon.sxpath.XPathEvaluator.createExpression()

        if(xpath == null) {
            return;
        }
       
        XPathEvaluator eval = new XPathEvaluator();
        eval.createExpression(xpath);
    }
   
    public static String escapeName(String name, boolean fully) {
      StringBuilder sb = new StringBuilder();
      char[] chars = name.toCharArray();
View Full Code Here

Examples of net.sf.saxon.sxpath.XPathEvaluator.createExpression()

              path = path.substring(1);
            }
          }
        XPathExpression exp;
      try {
        exp = eval.createExpression(path);
      } catch (XPathException e) {
        throw new QueryResolverException(e, QueryPlugin.Util.getString("SaxonXQueryExpression.invalid_path", xmlColumn.getName(), xmlColumn.getPath())); //$NON-NLS-1$
     
        xmlColumn.setPathExpression(exp);
    }
View Full Code Here

Examples of net.sf.saxon.sxpath.XPathEvaluator.createExpression()

                sc.declareNamespace((String) entry.getKey(),
                        (String) entry.getValue());
            }
            xpe.setStaticContext(sc);
            XPathVariable thisVar = xpe.declareVariable("", contextVar);
            XPathExpression xpath = xpe.createExpression(path);
            NodeInfo contextItem =
                //config.buildDocument(new DOMSource(contextNode));
                config.unravel(new DOMSource(contextNode));
            XPathDynamicContext dc = xpath.createDynamicContext(null);
            dc.setContextItem(contextItem);
View Full Code Here

Examples of net.sf.saxon.xpath.XPathEvaluator.createExpression()

        Variable wordVar = sc.declareVariable("word", "");

        // Compile the XPath expressions used by the application

        XPathExpression findLine =
            xpe.createExpression("//LINE[contains(., $word)]");
        XPathExpression findLocation =
            xpe.createExpression("concat(ancestor::ACT/TITLE, ' ', ancestor::SCENE/TITLE)");
        XPathExpression findSpeaker =
            xpe.createExpression("string(ancestor::SPEECH/SPEAKER[1])");
View Full Code Here

Examples of org.activiti.engine.impl.el.ExpressionManager.createExpression()

        String receiver = bpmConfNotice.getReceiver();
        BpmMailTemplate bpmMailTemplate = bpmConfNotice.getBpmMailTemplate();
        ExpressionManager expressionManager = Context
                .getProcessEngineConfiguration().getExpressionManager();
        UserDTO userDto = null;
        String subject = expressionManager
                .createExpression(bpmMailTemplate.getSubject())
                .getValue(taskEntity).toString();

        String content = expressionManager
                .createExpression(bpmMailTemplate.getContent())
View Full Code Here

Examples of org.apache.camel.language.simple.SimpleLanguage.createExpression()

    private Expression createExpression(Exchange exchange) {
        SimpleLanguage simple = (SimpleLanguage) exchange.getContext().resolveLanguage("simple");
        if (resultType != null) {
            simple.setResultType(resultType);
        }
        return simple.createExpression(text);
    }

    public String toString() {
        return "Simple: " + text;
    }
View Full Code Here

Examples of org.apache.camel.language.simple.ast.SimpleFunctionExpression.createExpression()

        // okay there is no function tokens, then try to parse it as a simple function expression
        SimpleToken token = new SimpleToken(new SimpleTokenType(TokenType.functionStart, expression), 0);
        SimpleFunctionExpression function = new SimpleFunctionExpression(token);
        function.addText(expression);
        return function.createExpression(expression, false);
    }

}
View Full Code Here

Examples of org.apache.camel.language.tokenizer.TokenizeLanguage.createExpression()

            language.setXml(xml);
        }
        if (includeTokens != null) {
            language.setIncludeTokens(includeTokens);
        }
        return language.createExpression();
    }

    @Override
    public Predicate createPredicate(CamelContext camelContext) {
        Expression exp = createExpression(camelContext);
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.