com.caucho.db.sql
Class Parser

java.lang.Object
  extended by com.caucho.db.sql.Parser

@Module
public class Parser
extends java.lang.Object


Method Summary
static Query parse(Database database, java.lang.String sql)
           
 java.util.ArrayList<java.lang.String> parseColumnNames()
          Parses a list of column names
static Expr parseExpr(Database database, java.lang.String sql)
           
 void parseReferences(java.util.ArrayList<java.lang.String> name)
          Parses the references clause.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parse

public static Query parse(Database database,
                          java.lang.String sql)
                   throws java.sql.SQLException
Throws:
java.sql.SQLException

parseExpr

public static Expr parseExpr(Database database,
                             java.lang.String sql)
                      throws java.sql.SQLException
Throws:
java.sql.SQLException

parseReferences

public void parseReferences(java.util.ArrayList<java.lang.String> name)
                     throws java.sql.SQLException
Parses the references clause.

Throws:
java.sql.SQLException

parseColumnNames

public java.util.ArrayList<java.lang.String> parseColumnNames()
                                                       throws java.sql.SQLException
Parses a list of column names

Throws:
java.sql.SQLException