isql
Class SQLParser

java.lang.Object
  extended by isql.SQLParser

public class SQLParser
extends java.lang.Object

Uses ANTLR to parse the SQL queries and builds the error text if the SQL parsing failed

Author:
SHZ Dec 7, 2007

Constructor Summary
SQLParser(ILogger log)
          Constructor
 
Method Summary
 ISQLSelectParser buildParser(java.lang.String sql)
          builds the ANTLR parser from the sql expression
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SQLParser

public SQLParser(ILogger log)
Constructor

Parameters:
log - the logger
Method Detail

buildParser

public ISQLSelectParser buildParser(java.lang.String sql)
                             throws ISQLException
builds the ANTLR parser from the sql expression

Parameters:
sql - the SQL query
Returns:
the parser object
Throws:
ISQLException