Package org.gdbms.parser

Examples of org.gdbms.parser.SQLEngine$JJCalls


    while (!sql.equals("quit")) {
      long t1 = System.currentTimeMillis();
      ByteArrayInputStream bytes = new ByteArrayInputStream(sql
          .getBytes());
      SQLEngine parser = new SQLEngine(bytes);

      try {
        parser.SQLStatement();

        Node root = parser.getRootNode();
        Adapter rootAdapter = Utilities.buildTree(root.jjtGetChild(0),
            sql, ds);

        ParseTreeFrame parseTree = new ParseTreeFrame();
        parseTree.setTreeModel(new GDBMSParseTreeModel(
View Full Code Here


   *             If the execution of the statement fails
   */
  public DataSource executeSQL(String sql) throws SyntaxException,
      DriverLoadException, NoSuchTableException, ExecutionException {
    ByteArrayInputStream bytes = new ByteArrayInputStream(sql.getBytes());
    SQLEngine parser = new SQLEngine(bytes);

    try {
      parser.SQLStatement();
    } catch (ParseException e) {
      throw new SyntaxException(e);
    }

    Node root = parser.getRootNode();
    Adapter rootAdapter = Utilities.buildTree(root.jjtGetChild(0), sql,
        this);

    Utilities.simplify(rootAdapter);

View Full Code Here

TOP

Related Classes of org.gdbms.parser.SQLEngine$JJCalls

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.