Package org.springframework.integration.xquery.core

Examples of org.springframework.integration.xquery.core.XQueryExecutor


  /**
   * @return
   */
  private XQueryExecutor getExecutor(String xQuery) {
    XQueryExecutor executor = new XQueryExecutor();
    executor.setXQuery(xQuery);
    executor.afterPropertiesSet();
    return executor;
  }
View Full Code Here


                "<employee id=\"1\" name=\"Emp1\" dept=\"Dep1\"/>" +
                "<employee id=\"2\" name=\"Emp2\" dept=\"Dep2\"/>" +
              "</employees>";

    XQueryTransformer transformer = new XQueryTransformer();
    XQueryExecutor executor = new XQueryExecutor();
    executor.setXQueryFileResource(
        new ClassPathResource("org/springframework/integration/xquery/XQueryTransform.xq"));
    executor.setFormatOutput(true);
    executor.afterPropertiesSet();
    transformer.setExecutor(executor);
    transformer.afterPropertiesSet();
    try {
      Object transformed = transformer.doTransform(MessageBuilder.withPayload(inputXml).build());
      Assert.assertNotNull(transformed);
View Full Code Here

  //TODO: Refactor, Can have a common superclass for all XQuery components
  /**
   * @return
   */
  private XQueryExecutor getExecutor(String xQuery) {
    XQueryExecutor executor = new XQueryExecutor();
    executor.setXQuery(xQuery);
    executor.afterPropertiesSet();
    return executor;
  }
View Full Code Here

TOP

Related Classes of org.springframework.integration.xquery.core.XQueryExecutor

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.