Package javax.xml.xquery

Examples of javax.xml.xquery.XQPreparedExpression.executeQuery()


                Node requestNode = DOMUtils.parse(request.newXMLStreamReader());
                if (__log.isDebugEnabled()) {
                    __log.debug("request " + request.toString());
                }
                exp.bindItem(XQConstants.CONTEXT_ITEM, xqconn.createItemFromNode(requestNode, xqconn.createNodeType()));
                XQResultSequence result = exp.executeQuery();
                MockQueryResponseDocument response = MockQueryResponseDocument.Factory.parse(result.getSequenceAsStream());
                {
                    XmlOptions opts = new XmlOptions();
                    List<Object> errors = new ArrayList<Object>();
                    opts.setErrorListener(errors);
View Full Code Here


                funcResolver, null);
            exp.bindItem(XQConstants.CONTEXT_ITEM,
                xqconn.createItemFromNode(contextNode, xqconn.createNodeType()));

            // Execute query
            XQResultSequence result = exp.executeQuery();

            // Cast Saxon result to Java result
            Object evalResult = getResultValue(type, result);

            if ((evalResult != null) && __log.isDebugEnabled()) {
View Full Code Here

                Node requestNode = DOMUtils.parse(request.newXMLStreamReader());
                if (__log.isDebugEnabled()) {
                    __log.debug("request " + request.toString());
                }
                exp.bindItem(XQConstants.CONTEXT_ITEM, xqconn.createItemFromNode(requestNode, xqconn.createNodeType()));
                XQResultSequence result = exp.executeQuery();
                MockQueryResponseDocument response = MockQueryResponseDocument.Factory.parse(result.getSequenceAsStream());
                {
                    XmlOptions opts = new XmlOptions();
                    List<Object> errors = new ArrayList<Object>();
                    opts.setErrorListener(errors);
View Full Code Here

       
        XQPreparedExpression exp = conn.prepareExpression(reader);
        String filename = file.getAbsolutePath().replace('\\', '/');
        exp.bindString(new QName(DOC), filename, null);
       
        XQResultSequence queryResult = exp.executeQuery();
        result = processRelationshipResults(queryResult, types);
        deltas.add(result);
      }
     
    } catch (XQException e) {
View Full Code Here

      StringReader reader = new StringReader(complete);
       
      XQPreparedExpression exp = conn.prepareExpression(reader);
      exp.bindString(new QName(DOC), file.getAbsolutePath().replace('\\', '/'), null);
       
      XQResultSequence queryResult = exp.executeQuery();
      return processBindingResults(queryResult);
    } catch (XQException e) {
      throw new FusionTypeCheckException(e);
    } catch (XPathException e) {
      throw new FusionTypeCheckException(e);
View Full Code Here

          expression.bindObject(new QName(xQueryParam.getParameterName()),
                          xQueryParam.evaluate(message), null);
        }
      }

      XQResultSequence result = expression.executeQuery();
      return mapper.mapResults(result);

    } catch (XQException e) {
      throw new MessagingException("Caught Exception while opening a connection to the datasource", e);
    } finally {
View Full Code Here

                }
              }
            }
            // evaluate the expression so as to initialize the variables
            try {
                exp.executeQuery();
            } catch (XQException xpee) {
              // swallow errors caused by uninitialized variables
            } finally {
              // reset the expression's user data, in order to avoid
              // serializing the function resolver in the compiled bpel file.
View Full Code Here

                funcResolver, null);
            exp.bindItem(XQConstants.CONTEXT_ITEM,
                xqconn.createItemFromNode(contextNode, xqconn.createNodeType()));

            // Execute query
            XQResultSequence result = exp.executeQuery();

            // Cast Saxon result to Java result
            Object evalResult = getResultValue(type, result);

            if ((evalResult != null) && __log.isDebugEnabled()) {
View Full Code Here

                funcResolver, null);
            exp.bindItem(XQConstants.CONTEXT_ITEM,
                xqconn.createItemFromNode(contextNode, xqconn.createNodeType()));

            // Execute query
            XQResultSequence result = exp.executeQuery();

            // Cast Saxon result to Java result
            Object evalResult = getResultValue(type, result);

            if ((evalResult != null) && __log.isDebugEnabled()) {
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.