Package org.teiid.query.xquery.saxon.SaxonXQueryExpression

Examples of org.teiid.query.xquery.saxon.SaxonXQueryExpression.Result


      FunctionExecutionException {
    boolean emptyOnEmpty = true;
    if (xmlQuery.getEmptyOnEmpty() != null)  {
      emptyOnEmpty = xmlQuery.getEmptyOnEmpty();
    }  
    Result result = null;
    try {
      result = evaluateXQuery(xmlQuery.getXQueryExpression(), xmlQuery.getPassing(), tuple);
      return xmlQuery.getXQueryExpression().createXMLType(result.iter, this.context.getBufferManager(), emptyOnEmpty);
    } catch (TeiidProcessingException e) {
      throw new FunctionExecutionException(e, QueryPlugin.Util.getString("Evaluator.xmlquery", e.getMessage())); //$NON-NLS-1$
    } catch (XPathException e) {
      throw new FunctionExecutionException(e, QueryPlugin.Util.getString("Evaluator.xmlquery", e.getMessage())); //$NON-NLS-1$
    } finally {
      if (result != null) {
        result.close();
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.teiid.query.xquery.saxon.SaxonXQueryExpression.Result

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.