Package ch.ethz.mxquery.core

Examples of ch.ethz.mxquery.core.XQueryExpression


    } else {
      System.out.println("Micro XQuery 0.1\n Usage java -jar mxquery.jar querystring or java -jar mxquery.jar queryfile\n Executing sample query\n ");
    }

    File file = new File(query);
    XQueryExpression exp;
    if (file.exists()) {
      exp = executor.prepareQuery(FileReader.UriToString(query));
    } else {
      exp = executor.prepareQuery(query);
    }
View Full Code Here


    executor.doQuery(exp);
    System.out.println(executor.getResultBuffer().toString());
  }

  public void doQuery(String query) throws Exception {
    XQueryExpression expr = prepareQuery(query);
    doQuery(expr);
  }
View Full Code Here

    doQuery(expr);
  }

  public XQueryExpression prepareQuery(String query) throws Exception {
    System.out.println("Executing Query: \n'" + query + "'");
    XQueryExpression expr = runtime.prepareQuery(query);
    return expr;
  }
View Full Code Here

TOP

Related Classes of ch.ethz.mxquery.core.XQueryExpression

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.