org.castor.cpa.query.ejbql
Class EjbQLTreeWalker

java.lang.Object
  extended by org.castor.cpa.query.ejbql.EjbQLTreeWalker
All Implemented Interfaces:
EjbQLParserConstants, EjbQLParserTreeConstants

public final class EjbQLTreeWalker
extends Object
implements EjbQLParserTreeConstants, EjbQLParserConstants

EjbQL Parser TreeWalker which creates the OQ from a parsed EjbQL string.

Since:
1.3
Version:
$Revision: 7121 $ $Date: 2006-04-25 16:09:10 -0600 (Tue, 25 Apr 2006) $
Author:
Udai Gupta, Ralf Joachim

Field Summary
 
Fields inherited from interface org.castor.cpa.query.ejbql.EjbQLParserTreeConstants
JJTBETWEENEXPRESSION, JJTBOOLEANLITERAL, JJTCHARLITERAL, JJTCOMPARISONEXPRESSION, JJTCOMPARISONOPERATOR, JJTCONDITIONALEXPRESSION, JJTCONDITIONALFACTOR, JJTCONDITIONALPRIMARY, JJTCONDITIONALTERM, JJTDATELITERAL, JJTEJBQL, JJTEXPRESSION, JJTFACTOR, JJTFLOATLITERAL, JJTFROMCLAUSE, JJTFROMDECLARATION, JJTFUNCTION, JJTIDENTIFIER, JJTINEXPRESSION, JJTINITEM, JJTINTEGERLITERAL, JJTLIKEEXPRESSION, JJTLIMITCLAUSE, JJTLITERAL, JJTNAMEDPARAMETER, jjtNodeName, JJTNULLEXPRESSION, JJTORDERBYCLAUSE, JJTORDERBYITEM, JJTPARAMETER, JJTPATH, JJTPOSITIONALPARAMETER, JJTPRIMARY, JJTSELECTCLAUSE, JJTSELECTEXPRESSION, JJTSELECTSTATEMENT, JJTTERM, JJTTIMELITERAL, JJTTIMESTAMPLITERAL, JJTTRIMSPECIFICATION, JJTWHERECLAUSE
 
Fields inherited from interface org.castor.cpa.query.ejbql.EjbQLParserConstants
ABS, AND, AS, ASC, BETWEEN, BOOLEAN_LITERAL, BOTH, BY, CHAR_LITERAL, CONCAT, CONCATE, CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP, DATE, DATE_LITERAL, DEFAULT, DESC, DIGIT, DISTINCT, DIVIDE, EOF, EQUAL, ESCAPE, FALSE, FLOAT_LITERAL, FROM, GREATEREQUAL, GREATERTHAN, IDENTIFIER, IN, INTEGER_LITERAL, IS, IS_DEFINED, IS_UNDEFINED, LEADING, LENGTH, LESSEQUAL, LESSTHAN, LETTER, LIKE, LIMIT, LOCATE, LOWER, MINUS, MOD, MULTIPLY, NIL, NOT, NOTEQUAL, NULL, OBJECT, OFFSET, OR, ORDER, PLUS, REMAINDER, SELECT, SQRT, SUBSTRING, TIME, TIME_LITERAL, TIMESTAMP, TIMESTAMP_LITERAL, tokenImage, TRAILING, TRIM, TRUE, UNDEFINED, UPPER, WHERE
 
Constructor Summary
EjbQLTreeWalker(SimpleNode node)
          Instantiates a new Ejb ql tree walker.
 
Method Summary
 SelectQuery getSelect()
          Gets the select.
 void setSelect(SelectQuery select)
          Sets the select.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EjbQLTreeWalker

public EjbQLTreeWalker(SimpleNode node)
                throws ParseException
Instantiates a new Ejb ql tree walker.

Parameters:
node - the node
Throws:
ParseException - Exception thrown by parser when parsing an invalid query.
ParseException
Method Detail

getSelect

public SelectQuery getSelect()
Gets the select.

Returns:
the select

setSelect

public void setSelect(SelectQuery select)
Sets the select.

Parameters:
select - the new select


Copyright © 2011. All Rights Reserved.