jxDBCon 0.9z

org.sourceforge.jxdbcon
Class SQLParser

java.lang.Object
  |
  +--org.sourceforge.jxdbcon.SimpleEscapeParser
        |
        +--org.sourceforge.jxdbcon.SQLParser

public class SQLParser
extends SimpleEscapeParser

This class attempts to tokenze SQL statements. This is a misguided attempt to do a tokenizer/parser for SQL. It simply can't be done this way.

Version:
$Revision: 1.5 $, $Date: 2002/03/16 01:26:07 $
Author:
Keve Müller

Field Summary
(package private) static ArrayList keywords
           
(package private) static Object markEnum
           
(package private) static String[] nonReservedKeywords
           
(package private) static String[] reservedKeywords
           
 
Fields inherited from class org.sourceforge.jxdbcon.SimpleEscapeParser
ctx, lst, markBrace, markComma, markCurly, poslst, sql
 
Constructor Summary
SQLParser(String sql)
           
 
Method Summary
(package private)  void endChars(String s)
           
(package private)  void endEnumeration()
           
protected  void parse()
           
 
Methods inherited from class org.sourceforge.jxdbcon.SimpleEscapeParser
getFrags, getPosParams, main, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

keywords

static final ArrayList keywords

markEnum

static final Object markEnum

nonReservedKeywords

static final String[] nonReservedKeywords

reservedKeywords

static final String[] reservedKeywords
Constructor Detail

SQLParser

public SQLParser(String sql)
          throws IllegalArgumentException,
                 SQLException
Method Detail

endChars

void endChars(String s)
        throws SQLException
Overrides:
endChars in class SimpleEscapeParser
SQLException

endEnumeration

void endEnumeration()

parse

protected void parse()
              throws IllegalArgumentException,
                     SQLException
Overrides:
parse in class SimpleEscapeParser
IllegalArgumentException
SQLException

jxDBCon 0.9z

Copyright © 2001,2002 Keve Müller; see LICENSE file for details.