com.sun.ebxml.registry.query.sql
Class SQLParser
java.lang.Object
com.sun.ebxml.registry.query.sql.SQLParser
- All Implemented Interfaces:
- SQLParserConstants
- public class SQLParser
- extends java.lang.Object
- implements SQLParserConstants
Based on grammar by Kevin (mailto:kevinh@empower.com.au) at: http://www.cobase.cs.ucla.edu/pub/javacc/sql-oracle.jj
Fields inherited from interface com.sun.ebxml.registry.query.sql.SQLParserConstants |
ALL, AND, ASC, ASTERISK, BETWEEN, BY, CLOSEPAREN, COMMENT_BLOCK, COMMENT_LINE, DEFAULT, DESC, DIGIT, DISTINCT, DOT, EOF, EQUAL, EXISTS, EXPONENT, FLOATING_POINT_LITERAL, FROM, GREATER, GREATEREQUAL, GROUP, HAVING, ID, IN, INTEGER_LITERAL, IS, LESS, LESSEQUAL, LETTER, LIKE, MAX, MIN, MINUS, NOT, NOTEQUAL, NOTEQUAL2, NULL, OPENPAREN, OR, ORDER, PLUS, QUESTIONMARK, SELECT, SEMICOLON, SLASH, SPACES, STRING_LITERAL, SUM, tokenImage, UPPER, WHERE, ZERO, ZEROS |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
firstTableName
public java.lang.String firstTableName
aliasToTableNameMap
public java.util.HashMap aliasToTableNameMap
selectColName
public java.lang.String selectColName
selectColAlias
public java.lang.String selectColAlias
selectColAndAlias
public java.lang.String selectColAndAlias
token_source
public SQLParserTokenManager token_source
token
public Token token
jj_nt
public Token jj_nt
lookingAhead
public boolean lookingAhead
SQLParser
public SQLParser(java.io.InputStream stream)
SQLParser
public SQLParser(java.io.Reader stream)
SQLParser
public SQLParser(SQLParserTokenManager tm)
main
public static void main(java.lang.String[] args)
throws ParseException
- Throws:
ParseException
processQuery
public final java.lang.String processQuery(org.oasis.ebxml.registry.bindings.rim.User user,
org.oasis.ebxml.registry.bindings.query.ResponseOption responseOption)
throws ParseException
- The Registry Query (Subset of SQL-92) grammar starts here
- Throws:
ParseException
SQLSelect
public final java.lang.String SQLSelect()
throws ParseException
- Throws:
ParseException
SQLSelectCols
public final java.lang.String SQLSelectCols()
throws ParseException
- Throws:
ParseException
SQLTableList
public final java.lang.String SQLTableList()
throws ParseException
- Throws:
ParseException
SQLTableRef
public final java.lang.String SQLTableRef()
throws ParseException
- Throws:
ParseException
SQLWhere
public final java.lang.String SQLWhere()
throws ParseException
- Throws:
ParseException
SQLOrExpr
public final java.lang.String SQLOrExpr()
throws ParseException
- Throws:
ParseException
SQLAndExpr
public final java.lang.String SQLAndExpr()
throws ParseException
- Throws:
ParseException
SQLNotExpr
public final java.lang.String SQLNotExpr()
throws ParseException
- Throws:
ParseException
SQLCompareExpr
public final java.lang.String SQLCompareExpr()
throws ParseException
- Throws:
ParseException
SQLCompareExprRight
public final java.lang.String SQLCompareExprRight()
throws ParseException
- Throws:
ParseException
SQLCompareOp
public final java.lang.String SQLCompareOp()
throws ParseException
- Throws:
ParseException
SQLFunction
public final java.lang.String SQLFunction()
throws ParseException
- Throws:
ParseException
SQLFunctionArgs
public final java.lang.String SQLFunctionArgs()
throws ParseException
- Throws:
ParseException
SQLInClause
public final java.lang.String SQLInClause()
throws ParseException
- Throws:
ParseException
SQLLValueListOrProcedureCall
public final java.lang.String SQLLValueListOrProcedureCall()
throws ParseException
- Throws:
ParseException
ProcedureCall
public final java.lang.String ProcedureCall()
throws ParseException
- Throws:
ParseException
SQLLValueList
public final java.lang.String SQLLValueList()
throws ParseException
- Throws:
ParseException
SQLLValueElement
public final java.lang.String SQLLValueElement()
throws ParseException
- Throws:
ParseException
SQLIsClause
public final java.lang.String SQLIsClause()
throws ParseException
- Throws:
ParseException
SQLLikeClause
public final java.lang.String SQLLikeClause()
throws ParseException
- Throws:
ParseException
SQLPattern
public final java.lang.String SQLPattern()
throws ParseException
- Throws:
ParseException
SQLColRef
public final java.lang.String SQLColRef()
throws ParseException
- Throws:
ParseException
SQLLvalue
public final java.lang.String SQLLvalue()
throws ParseException
- Throws:
ParseException
SQLLvalueTerm
public final java.lang.String SQLLvalueTerm()
throws ParseException
- Throws:
ParseException
SQLSumExpr
public final java.lang.String SQLSumExpr()
throws ParseException
- Throws:
ParseException
SQLProductExpr
public final java.lang.String SQLProductExpr()
throws ParseException
- Throws:
ParseException
SQLUnaryExpr
public final java.lang.String SQLUnaryExpr()
throws ParseException
- Throws:
ParseException
SQLTerm
public final java.lang.String SQLTerm()
throws ParseException
- Throws:
ParseException
SQLLiteral
public final java.lang.String SQLLiteral()
throws ParseException
- Throws:
ParseException
SQLOrderBy
public final java.lang.String SQLOrderBy()
throws ParseException
- Throws:
ParseException
SQLOrderByElem
public final java.lang.String SQLOrderByElem()
throws ParseException
- Throws:
ParseException
SQLOrderByList
public final java.lang.String SQLOrderByList()
throws ParseException
- Throws:
ParseException
SQLOrderDirection
public final java.lang.String SQLOrderDirection()
throws ParseException
- Throws:
ParseException
ReInit
public void ReInit(java.io.InputStream stream)
ReInit
public void ReInit(java.io.Reader stream)
ReInit
public void ReInit(SQLParserTokenManager tm)
getNextToken
public final Token getNextToken()
getToken
public final Token getToken(int index)
generateParseException
public final ParseException generateParseException()
enable_tracing
public final void enable_tracing()
disable_tracing
public final void disable_tracing()