org.apache.openjpa.kernel.jpql
Class JPQL

java.lang.Object
  extended by org.apache.openjpa.kernel.jpql.JPQL
All Implemented Interfaces:
JPQLConstants, JPQLTreeConstants

public class JPQL
extends Object
implements JPQLTreeConstants, JPQLConstants


Field Summary
 Token jj_nt
           
protected  org.apache.openjpa.kernel.jpql.JJTJPQLState jjtree
           
 boolean lookingAhead
           
 Token token
           
 JPQLTokenManager token_source
           
 
Fields inherited from interface org.apache.openjpa.kernel.jpql.JPQLTreeConstants
JJTABS, JJTABSTRACTSCHEMANAME, JJTADD, JJTAGGREGATE, JJTALL, JJTAND, JJTANY, JJTASCENDING, JJTAVERAGE, JJTBETWEEN, JJTBOOLEANLITERAL, JJTCASE, JJTCLASSNAME, JJTCOALESCE, JJTCOLLECTIONPARAMETER, JJTCONCAT, JJTCONSTRUCTOR, JJTCONSTRUCTORPARAM, JJTCONSTRUCTORPARAMS, JJTCOUNT, JJTCURRENTDATE, JJTCURRENTTIME, JJTCURRENTTIMESTAMP, JJTDATELITERAL, JJTDECIMALLITERAL, JJTDELETE, JJTDESCENDING, JJTDISTINCT, JJTDISTINCTPATH, JJTDIVIDE, JJTENTRY, JJTEQUALS, JJTESCAPECHARACTER, JJTEXISTS, JJTFROM, JJTFROMITEM, JJTGENERALCASE, JJTGENERALIDENTIFIER, JJTGREATEROREQUAL, JJTGREATERTHAN, JJTGROUPBY, JJTGROUPBYEXTENSION, JJTHAVING, JJTIDENTIFICATIONVARIABLE, JJTIDENTIFIER, JJTIN, JJTINDEX, JJTINNERFETCHJOIN, JJTINNERJOIN, JJTINTEGERLITERAL, JJTISEMPTY, JJTISNULL, JJTKEY, JJTLENGTH, JJTLESSOREQUAL, JJTLESSTHAN, JJTLIKE, JJTLOCATE, JJTLOWER, JJTMAX, JJTMEMBEROF, JJTMIN, JJTMOD, JJTMULTIPLY, JJTNAMEDINPUTPARAMETER, JJTNEGATIVE, jjtNodeName, JJTNOT, JJTNOTEQUALS, JJTNULLIF, JJTOR, JJTORDERBY, JJTORDERBYEXTENSION, JJTORDERBYITEM, JJTOUTERFETCHJOIN, JJTOUTERJOIN, JJTPATH, JJTPATTERNVALUE, JJTPOSITIONALINPUTPARAMETER, JJTQUALIFIEDIDENTIFIER, JJTQUALIFIEDPATH, JJTSCALAREXPRESSION, JJTSELECT, JJTSELECTCLAUSE, JJTSELECTEXPRESSION, JJTSELECTEXPRESSIONS, JJTSELECTEXTENSION, JJTSIMPLECASE, JJTSIZE, JJTSQRT, JJTSTRINGLITERAL, JJTSTRINGLITERAL2, JJTSUBSELECT, JJTSUBSTRING, JJTSUBTRACT, JJTSUM, JJTTIMELITERAL, JJTTIMESTAMPLITERAL, JJTTOK, JJTTRIM, JJTTRIMBOTH, JJTTRIMCHARACTER, JJTTRIMLEADING, JJTTRIMTRAILING, JJTTYPE, JJTTYPELITERAL, JJTUPDATE, JJTUPDATEITEM, JJTUPDATEVALUE, JJTUPPER, JJTVALUE, JJTVOID, JJTWHEN, JJTWHENSCALAR, JJTWHERE
 
Fields inherited from interface org.apache.openjpa.kernel.jpql.JPQLConstants
ABS, ALL, AND, ANY, AS, ASC, AVG, BETWEEN, BOOLEAN_LITERAL, BOTH, BY, CASE, CHARACTER_LITERAL, CLASS, COALESCE, COMMA, CONCAT, COUNT, CURRENT_DATE, CURRENT_TIME, CURRENT_TIMESTAMP, DATE_LITERAL, DECIMAL_LITERAL, DEFAULT, DELETE, DESC, DIGIT, DISTINCT, DIV, DOT, ELSE, EMPTY, END, ENTRY, EOF, EQ, ESCAPE, EXISTS, EXPONENT, FETCH, FROM, GE, GROUP, GT, HAVING, IDENTIFIER, IN, INDEX, INNER, INTEGER_LITERAL, IS, JOIN, KEY, LE, LEADING, LEFT, LENGTH, LETTER, LIKE, LOCATE, LOWER, LT, MAX, MEMBER, MIN, MINUS, MOD, NE, NEW, NOT, NULL, NULLIF, OBJECT, OF, OR, ORDER, OUTER, PLUS, SELECT, SET, SIZE, SOME, SQRT, STRING_LITERAL, STRING_LITERAL2, SUBSTRING, SUM, THEN, TIME_LITERAL, TIMES, TIMESTAMP_LITERAL, tokenImage, TRAILING, TRIM, TYPE, UPDATE, UPPER, VALUE, WHEN, WHERE
 
Constructor Summary
JPQL(InputStream stream)
           
JPQL(InputStream stream, String encoding)
           
JPQL(JPQLTokenManager tm)
           
JPQL(Reader stream)
           
JPQL(String jpql)
           
 
Method Summary
 void abs()
           
 void abstract_schema_name()
           
 void aggregate_path()
           
 void aggregate_select_expression()
           
 void all_expression()
           
 void all_or_any_expression()
           
 void any_expression()
           
 void arithmetic_comp()
           
 void arithmetic_expression()
           
 void arithmetic_factor()
           
 void arithmetic_term()
           
 void arithmetic_value()
           
 void avg()
           
 void between_expression()
           
 void boolean_comp()
           
 void boolean_expression()
           
 void boolean_literal()
           
 void boolean_primary()
           
 void boolean_value()
           
 void case_expression()
           
 void classname()
           
 void coalesce_expression()
           
 void collection_member_declaration()
           
 void collection_member_expression()
           
 void collection_valued_input_parameter()
           
 void comparison_expression()
           
 void concat()
           
 void conditional_expression()
           
 void conditional_factor()
           
 void conditional_primary()
           
 void conditional_term()
           
 void constructor_expression()
           
 void constructor_parameter()
           
 void constructor_parameters()
           
 void count()
           
 void date_literal()
           
 void datetime_comp()
           
 void datetime_expression()
           
 void datetime_primary()
           
 void decimal_literal()
           
 void delete_statement()
           
 void disable_tracing()
           
 void distinct_path()
           
 void distinct()
           
 void empty_collection_comparison_expression()
           
 void enable_tracing()
           
 void entity_bean_expression()
           
 void entity_bean_value()
           
 void entity_comp()
           
 void entity_type_comp()
           
 void entity_type_expression()
           
 void entity_type_literal()
           
 void enum_comp()
           
 void enum_expression()
           
 void enum_literal()
           
 void enum_primary()
           
 void EQ()
           
 void escape_character()
           
 void exists_expression()
           
 void fetch_join()
           
 void from_clause()
           
 void from_item()
           
 void functions_returning_datetime()
           
 void functions_returning_numerics()
           
 void functions_returning_strings()
           
 void GE()
           
 void general_case_expression()
           
 void general_identification_variable()
           
 ParseException generateParseException()
           
 Token getNextToken()
           
 Token getToken(int index)
           
 void groupby_clause()
           
 void groupby_extension()
           
 void groupby_item()
           
 void GT()
           
 void having_clause()
           
 void identification_variable_declaration()
           
 void identification_variable()
           
 void in_expression()
           
 void index()
           
 void inner_fetch_join()
           
 void inner_join()
           
 void input_parameter()
           
 void integer_literal()
           
 void LE()
           
 void length()
           
 void like_expression()
           
 void literal_or_param()
           
 void literal()
           
 void locate()
           
 void lower()
           
 void LT()
           
static void main(String[] args)
           
 void max()
           
 void min()
           
 void mod()
           
 void named_input_parameter()
           
 void NE()
           
 void negative()
           
 void new_value()
           
 void null_comparison_expression()
           
 void nullif_expression()
           
 void numeric_literal()
           
 void orderby_clause()
           
 void orderby_extension()
           
 void orderby_item()
           
 void outer_fetch_join()
           
 void outer_join()
           
 Node parseQuery()
           
 void path_component()
           
 void path()
           
 void pattern_value()
           
 void positional_input_parameter()
           
 void qualified_identification_variable()
           
 void qualified_path()
           
 void ReInit(InputStream stream)
           
 void ReInit(InputStream stream, String encoding)
           
 void ReInit(JPQLTokenManager tm)
           
 void ReInit(Reader stream)
           
 void scalar_expression()
           
 void scalar_function()
           
 void select_clause()
           
 void select_expression()
           
 void select_expressions()
           
 void select_extension()
           
 void select_statement()
           
 void set_clause()
           
 void simple_case_expression()
           
 void simple_cond_expression()
           
 void simple_entity_expression()
           
 void simple_select_clause()
           
 void simple_when_clause()
           
 void size()
           
 void some_expression()
           
 void sqrt()
           
 void string_comp()
           
 void string_expression()
           
 void string_literal()
           
 void string_literal2()
           
 void string_primary()
           
 void string_value()
           
 void subquery_from_clause()
           
 void subquery_from_item()
           
 void subquery()
           
 void subselect_expression()
           
 void subselect_expressions()
           
 void subselect_identification_variable_declaration()
           
 void substring()
           
 void sum()
           
 void time_literal()
           
 void timestamp_literal()
           
 void tok()
           
 void trim_character()
           
 void trim_specification()
           
 void trim()
           
 void type_discriminator()
           
 void update_clause()
           
 void update_item()
           
 void update_statement()
           
 void upper()
           
 void when_clause()
           
 void where_clause()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jjtree

protected org.apache.openjpa.kernel.jpql.JJTJPQLState jjtree

token_source

public JPQLTokenManager token_source

token

public Token token

jj_nt

public Token jj_nt

lookingAhead

public boolean lookingAhead
Constructor Detail

JPQL

public JPQL(String jpql)

JPQL

public JPQL(InputStream stream)

JPQL

public JPQL(InputStream stream,
            String encoding)

JPQL

public JPQL(Reader stream)

JPQL

public JPQL(JPQLTokenManager tm)
Method Detail

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception

parseQuery

public final Node parseQuery()
                      throws ParseException
Throws:
ParseException

select_statement

public final void select_statement()
                            throws ParseException
Throws:
ParseException

update_statement

public final void update_statement()
                            throws ParseException
Throws:
ParseException

delete_statement

public final void delete_statement()
                            throws ParseException
Throws:
ParseException

from_clause

public final void from_clause()
                       throws ParseException
Throws:
ParseException

identification_variable_declaration

public final void identification_variable_declaration()
                                               throws ParseException
Throws:
ParseException

from_item

public final void from_item()
                     throws ParseException
Throws:
ParseException

subquery_from_clause

public final void subquery_from_clause()
                                throws ParseException
Throws:
ParseException

subselect_identification_variable_declaration

public final void subselect_identification_variable_declaration()
                                                         throws ParseException
Throws:
ParseException

subquery_from_item

public final void subquery_from_item()
                              throws ParseException
Throws:
ParseException

inner_join

public final void inner_join()
                      throws ParseException
Throws:
ParseException

collection_member_declaration

public final void collection_member_declaration()
                                         throws ParseException
Throws:
ParseException

outer_join

public final void outer_join()
                      throws ParseException
Throws:
ParseException

fetch_join

public final void fetch_join()
                      throws ParseException
Throws:
ParseException

outer_fetch_join

public final void outer_fetch_join()
                            throws ParseException
Throws:
ParseException

inner_fetch_join

public final void inner_fetch_join()
                            throws ParseException
Throws:
ParseException

path

public final void path()
                throws ParseException
Throws:
ParseException

update_clause

public final void update_clause()
                         throws ParseException
Throws:
ParseException

set_clause

public final void set_clause()
                      throws ParseException
Throws:
ParseException

update_item

public final void update_item()
                       throws ParseException
Throws:
ParseException

new_value

public final void new_value()
                     throws ParseException
Throws:
ParseException

simple_entity_expression

public final void simple_entity_expression()
                                    throws ParseException
Throws:
ParseException

select_clause

public final void select_clause()
                         throws ParseException
Throws:
ParseException

simple_select_clause

public final void simple_select_clause()
                                throws ParseException
Throws:
ParseException

select_expressions

public final void select_expressions()
                              throws ParseException
Throws:
ParseException

select_expression

public final void select_expression()
                             throws ParseException
Throws:
ParseException

select_extension

public final void select_extension()
                            throws ParseException
Throws:
ParseException

subselect_expressions

public final void subselect_expressions()
                                 throws ParseException
Throws:
ParseException

subselect_expression

public final void subselect_expression()
                                throws ParseException
Throws:
ParseException

constructor_expression

public final void constructor_expression()
                                  throws ParseException
Throws:
ParseException

classname

public final void classname()
                     throws ParseException
Throws:
ParseException

constructor_parameters

public final void constructor_parameters()
                                  throws ParseException
Throws:
ParseException

constructor_parameter

public final void constructor_parameter()
                                 throws ParseException
Throws:
ParseException

aggregate_select_expression

public final void aggregate_select_expression()
                                       throws ParseException
Throws:
ParseException

distinct

public final void distinct()
                    throws ParseException
Throws:
ParseException

aggregate_path

public final void aggregate_path()
                          throws ParseException
Throws:
ParseException

distinct_path

public final void distinct_path()
                         throws ParseException
Throws:
ParseException

count

public final void count()
                 throws ParseException
Throws:
ParseException

avg

public final void avg()
               throws ParseException
Throws:
ParseException

max

public final void max()
               throws ParseException
Throws:
ParseException

min

public final void min()
               throws ParseException
Throws:
ParseException

sum

public final void sum()
               throws ParseException
Throws:
ParseException

where_clause

public final void where_clause()
                        throws ParseException
Throws:
ParseException

groupby_clause

public final void groupby_clause()
                          throws ParseException
Throws:
ParseException

groupby_item

public final void groupby_item()
                        throws ParseException
Throws:
ParseException

groupby_extension

public final void groupby_extension()
                             throws ParseException
Throws:
ParseException

having_clause

public final void having_clause()
                         throws ParseException
Throws:
ParseException

subquery

public final void subquery()
                    throws ParseException
Throws:
ParseException

conditional_expression

public final void conditional_expression()
                                  throws ParseException
Throws:
ParseException

conditional_term

public final void conditional_term()
                            throws ParseException
Throws:
ParseException

conditional_factor

public final void conditional_factor()
                              throws ParseException
Throws:
ParseException

conditional_primary

public final void conditional_primary()
                               throws ParseException
Throws:
ParseException

simple_cond_expression

public final void simple_cond_expression()
                                  throws ParseException
Throws:
ParseException

between_expression

public final void between_expression()
                              throws ParseException
Throws:
ParseException

in_expression

public final void in_expression()
                         throws ParseException
Throws:
ParseException

entity_type_literal

public final void entity_type_literal()
                               throws ParseException
Throws:
ParseException

literal_or_param

public final void literal_or_param()
                            throws ParseException
Throws:
ParseException

like_expression

public final void like_expression()
                           throws ParseException
Throws:
ParseException

null_comparison_expression

public final void null_comparison_expression()
                                      throws ParseException
Throws:
ParseException

empty_collection_comparison_expression

public final void empty_collection_comparison_expression()
                                                  throws ParseException
Throws:
ParseException

collection_member_expression

public final void collection_member_expression()
                                        throws ParseException
Throws:
ParseException

exists_expression

public final void exists_expression()
                             throws ParseException
Throws:
ParseException

all_or_any_expression

public final void all_or_any_expression()
                                 throws ParseException
Throws:
ParseException

any_expression

public final void any_expression()
                          throws ParseException
Throws:
ParseException

some_expression

public final void some_expression()
                           throws ParseException
Throws:
ParseException

all_expression

public final void all_expression()
                          throws ParseException
Throws:
ParseException

comparison_expression

public final void comparison_expression()
                                 throws ParseException
Throws:
ParseException

string_comp

public final void string_comp()
                       throws ParseException
Throws:
ParseException

boolean_comp

public final void boolean_comp()
                        throws ParseException
Throws:
ParseException

enum_comp

public final void enum_comp()
                     throws ParseException
Throws:
ParseException

entity_comp

public final void entity_comp()
                       throws ParseException
Throws:
ParseException

arithmetic_comp

public final void arithmetic_comp()
                           throws ParseException
Throws:
ParseException

datetime_comp

public final void datetime_comp()
                         throws ParseException
Throws:
ParseException

scalar_function

public final void scalar_function()
                           throws ParseException
Throws:
ParseException

arithmetic_value

public final void arithmetic_value()
                            throws ParseException
Throws:
ParseException

arithmetic_expression

public final void arithmetic_expression()
                                 throws ParseException
Throws:
ParseException

arithmetic_term

public final void arithmetic_term()
                           throws ParseException
Throws:
ParseException

arithmetic_factor

public final void arithmetic_factor()
                             throws ParseException
Throws:
ParseException

qualified_path

public final void qualified_path()
                          throws ParseException
Throws:
ParseException

qualified_identification_variable

public final void qualified_identification_variable()
                                             throws ParseException
Throws:
ParseException

general_identification_variable

public final void general_identification_variable()
                                           throws ParseException
Throws:
ParseException

entity_type_comp

public final void entity_type_comp()
                            throws ParseException
Throws:
ParseException

type_discriminator

public final void type_discriminator()
                              throws ParseException
Throws:
ParseException

entity_type_expression

public final void entity_type_expression()
                                  throws ParseException
Throws:
ParseException

scalar_expression

public final void scalar_expression()
                             throws ParseException
Throws:
ParseException

case_expression

public final void case_expression()
                           throws ParseException
Throws:
ParseException

general_case_expression

public final void general_case_expression()
                                   throws ParseException
Throws:
ParseException

when_clause

public final void when_clause()
                       throws ParseException
Throws:
ParseException

simple_case_expression

public final void simple_case_expression()
                                  throws ParseException
Throws:
ParseException

simple_when_clause

public final void simple_when_clause()
                              throws ParseException
Throws:
ParseException

coalesce_expression

public final void coalesce_expression()
                               throws ParseException
Throws:
ParseException

nullif_expression

public final void nullif_expression()
                             throws ParseException
Throws:
ParseException

negative

public final void negative()
                    throws ParseException
Throws:
ParseException

string_value

public final void string_value()
                        throws ParseException
Throws:
ParseException

string_expression

public final void string_expression()
                             throws ParseException
Throws:
ParseException

string_primary

public final void string_primary()
                          throws ParseException
Throws:
ParseException

datetime_expression

public final void datetime_expression()
                               throws ParseException
Throws:
ParseException

datetime_primary

public final void datetime_primary()
                            throws ParseException
Throws:
ParseException

boolean_value

public final void boolean_value()
                         throws ParseException
Throws:
ParseException

boolean_expression

public final void boolean_expression()
                              throws ParseException
Throws:
ParseException

boolean_primary

public final void boolean_primary()
                           throws ParseException
Throws:
ParseException

enum_expression

public final void enum_expression()
                           throws ParseException
Throws:
ParseException

enum_primary

public final void enum_primary()
                        throws ParseException
Throws:
ParseException

enum_literal

public final void enum_literal()
                        throws ParseException
Throws:
ParseException

entity_bean_value

public final void entity_bean_value()
                             throws ParseException
Throws:
ParseException

entity_bean_expression

public final void entity_bean_expression()
                                  throws ParseException
Throws:
ParseException

functions_returning_strings

public final void functions_returning_strings()
                                       throws ParseException
Throws:
ParseException

concat

public final void concat()
                  throws ParseException
Throws:
ParseException

substring

public final void substring()
                     throws ParseException
Throws:
ParseException

trim

public final void trim()
                throws ParseException
Throws:
ParseException

lower

public final void lower()
                 throws ParseException
Throws:
ParseException

upper

public final void upper()
                 throws ParseException
Throws:
ParseException

trim_specification

public final void trim_specification()
                              throws ParseException
Throws:
ParseException

functions_returning_numerics

public final void functions_returning_numerics()
                                        throws ParseException
Throws:
ParseException

length

public final void length()
                  throws ParseException
Throws:
ParseException

locate

public final void locate()
                  throws ParseException
Throws:
ParseException

abs

public final void abs()
               throws ParseException
Throws:
ParseException

sqrt

public final void sqrt()
                throws ParseException
Throws:
ParseException

mod

public final void mod()
               throws ParseException
Throws:
ParseException

size

public final void size()
                throws ParseException
Throws:
ParseException

index

public final void index()
                 throws ParseException
Throws:
ParseException

functions_returning_datetime

public final void functions_returning_datetime()
                                        throws ParseException
Throws:
ParseException

orderby_clause

public final void orderby_clause()
                          throws ParseException
Throws:
ParseException

orderby_item

public final void orderby_item()
                        throws ParseException
Throws:
ParseException

orderby_extension

public final void orderby_extension()
                             throws ParseException
Throws:
ParseException

abstract_schema_name

public final void abstract_schema_name()
                                throws ParseException
Throws:
ParseException

tok

public final void tok()
               throws ParseException
Throws:
ParseException

identification_variable

public final void identification_variable()
                                   throws ParseException
Throws:
ParseException

path_component

public final void path_component()
                          throws ParseException
Throws:
ParseException

literal

public final void literal()
                   throws ParseException
Throws:
ParseException

numeric_literal

public final void numeric_literal()
                           throws ParseException
Throws:
ParseException

integer_literal

public final void integer_literal()
                           throws ParseException
Throws:
ParseException

decimal_literal

public final void decimal_literal()
                           throws ParseException
Throws:
ParseException

boolean_literal

public final void boolean_literal()
                           throws ParseException
Throws:
ParseException

string_literal

public final void string_literal()
                          throws ParseException
Throws:
ParseException

string_literal2

public final void string_literal2()
                           throws ParseException
Throws:
ParseException

date_literal

public final void date_literal()
                        throws ParseException
Throws:
ParseException

time_literal

public final void time_literal()
                        throws ParseException
Throws:
ParseException

timestamp_literal

public final void timestamp_literal()
                             throws ParseException
Throws:
ParseException

input_parameter

public final void input_parameter()
                           throws ParseException
Throws:
ParseException

collection_valued_input_parameter

public final void collection_valued_input_parameter()
                                             throws ParseException
Throws:
ParseException

named_input_parameter

public final void named_input_parameter()
                                 throws ParseException
Throws:
ParseException

positional_input_parameter

public final void positional_input_parameter()
                                      throws ParseException
Throws:
ParseException

pattern_value

public final void pattern_value()
                         throws ParseException
Throws:
ParseException

escape_character

public final void escape_character()
                            throws ParseException
Throws:
ParseException

trim_character

public final void trim_character()
                          throws ParseException
Throws:
ParseException

EQ

public final void EQ()
              throws ParseException
Throws:
ParseException

NE

public final void NE()
              throws ParseException
Throws:
ParseException

GT

public final void GT()
              throws ParseException
Throws:
ParseException

GE

public final void GE()
              throws ParseException
Throws:
ParseException

LT

public final void LT()
              throws ParseException
Throws:
ParseException

LE

public final void LE()
              throws ParseException
Throws:
ParseException

ReInit

public void ReInit(InputStream stream)

ReInit

public void ReInit(InputStream stream,
                   String encoding)

ReInit

public void ReInit(Reader stream)

ReInit

public void ReInit(JPQLTokenManager tm)

getNextToken

public final Token getNextToken()

getToken

public final Token getToken(int index)

generateParseException

public ParseException generateParseException()

enable_tracing

public final void enable_tracing()

disable_tracing

public final void disable_tracing()


Copyright © 2006–2013 Apache Software Foundation. All rights reserved.