Package org.apache.openjpa.kernel.jpql
Class JPQL
java.lang.Object
org.apache.openjpa.kernel.jpql.JPQL
- All Implemented Interfaces:
JPQLConstants,JPQLTreeConstants
-
Field Summary
FieldsModifier and TypeFieldDescriptionNext token.protected JJTJPQLStateCurrent token.Generated Token Manager.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, WHEREFields 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 -
Constructor Summary
ConstructorsConstructorDescriptionJPQL(InputStream stream) Constructor with InputStream.JPQL(InputStream stream, String encoding) Constructor with InputStream and supplied encodingConstructor.JPQL(JPQLTokenManager tm) Constructor with generated Token Manager. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidabs()final voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidavg()final voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidconcat()final voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidcount()final voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidDisable tracing.final voiddistinct()final voidfinal voidfinal voidEnable tracing.final voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidEQ()final voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidGE()final voidfinal voidGenerate ParseException.final TokenGet the next Token.final TokengetToken(int index) Get the specific Token.final voidfinal voidfinal voidfinal voidGT()final voidfinal voidfinal voidfinal voidfinal voidindex()final voidfinal voidfinal voidfinal voidfinal voidLE()final voidlength()final voidfinal voidliteral()final voidfinal voidlocate()final voidlower()final voidLT()static voidfinal voidmax()final voidmin()final voidmod()final voidfinal voidNE()final voidnegative()final voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal Nodefinal voidpath()final voidfinal voidfinal voidfinal voidfinal voidvoidReInit(InputStream stream) Reinitialise.voidReInit(InputStream stream, String encoding) Reinitialise.voidReinitialise.voidReinitialise.final voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidsize()final voidfinal voidsqrt()final voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidsubquery()final voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidsum()final voidfinal voidfinal voidtok()final voidtrim()final voidfinal voidfinal voidfinal voidfinal voidfinal voidfinal voidupper()final voidfinal void
-
Field Details
-
jjtree
-
token_source
Generated Token Manager. -
token
Current token. -
jj_nt
Next token.
-
-
Constructor Details
-
JPQL
-
JPQL
Constructor with InputStream. -
JPQL
Constructor with InputStream and supplied encoding -
JPQL
Constructor. -
JPQL
Constructor with generated Token Manager.
-
-
Method Details
-
main
- Throws:
Exception
-
parseQuery
- Throws:
ParseException
-
select_statement
- Throws:
ParseException
-
update_statement
- Throws:
ParseException
-
delete_statement
- Throws:
ParseException
-
from_clause
- Throws:
ParseException
-
identification_variable_declaration
- Throws:
ParseException
-
from_item
- Throws:
ParseException
-
subquery_from_clause
- Throws:
ParseException
-
subselect_identification_variable_declaration
- Throws:
ParseException
-
subquery_from_item
- Throws:
ParseException
-
inner_join
- Throws:
ParseException
-
collection_member_declaration
- Throws:
ParseException
-
outer_join
- Throws:
ParseException
-
fetch_join
- Throws:
ParseException
-
outer_fetch_join
- Throws:
ParseException
-
inner_fetch_join
- Throws:
ParseException
-
path
- Throws:
ParseException
-
update_clause
- Throws:
ParseException
-
set_clause
- Throws:
ParseException
-
update_item
- Throws:
ParseException
-
new_value
- Throws:
ParseException
-
simple_entity_expression
- Throws:
ParseException
-
select_clause
- Throws:
ParseException
-
simple_select_clause
- Throws:
ParseException
-
select_expressions
- Throws:
ParseException
-
select_expression
- Throws:
ParseException
-
select_extension
- Throws:
ParseException
-
subselect_expressions
- Throws:
ParseException
-
subselect_expression
- Throws:
ParseException
-
constructor_expression
- Throws:
ParseException
-
classname
- Throws:
ParseException
-
constructor_parameters
- Throws:
ParseException
-
constructor_parameter
- Throws:
ParseException
-
aggregate_select_expression
- Throws:
ParseException
-
distinct
- Throws:
ParseException
-
aggregate_path
- Throws:
ParseException
-
distinct_path
- Throws:
ParseException
-
count
- Throws:
ParseException
-
avg
- Throws:
ParseException
-
max
- Throws:
ParseException
-
min
- Throws:
ParseException
-
sum
- Throws:
ParseException
-
where_clause
- Throws:
ParseException
-
groupby_clause
- Throws:
ParseException
-
groupby_item
- Throws:
ParseException
-
groupby_extension
- Throws:
ParseException
-
having_clause
- Throws:
ParseException
-
subquery
- Throws:
ParseException
-
conditional_expression
- Throws:
ParseException
-
conditional_term
- Throws:
ParseException
-
conditional_factor
- Throws:
ParseException
-
conditional_primary
- Throws:
ParseException
-
simple_cond_expression
- Throws:
ParseException
-
between_expression
- Throws:
ParseException
-
in_expression
- Throws:
ParseException
-
entity_type_literal
- Throws:
ParseException
-
literal_or_param
- Throws:
ParseException
-
like_expression
- Throws:
ParseException
-
null_comparison_expression
- Throws:
ParseException
-
empty_collection_comparison_expression
- Throws:
ParseException
-
collection_member_expression
- Throws:
ParseException
-
exists_expression
- Throws:
ParseException
-
all_or_any_expression
- Throws:
ParseException
-
any_expression
- Throws:
ParseException
-
some_expression
- Throws:
ParseException
-
all_expression
- Throws:
ParseException
-
comparison_expression
- Throws:
ParseException
-
string_comp
- Throws:
ParseException
-
boolean_comp
- Throws:
ParseException
-
enum_comp
- Throws:
ParseException
-
entity_comp
- Throws:
ParseException
-
arithmetic_comp
- Throws:
ParseException
-
datetime_comp
- Throws:
ParseException
-
scalar_function
- Throws:
ParseException
-
arithmetic_value
- Throws:
ParseException
-
arithmetic_expression
- Throws:
ParseException
-
arithmetic_term
- Throws:
ParseException
-
arithmetic_factor
- Throws:
ParseException
-
qualified_path
- Throws:
ParseException
-
qualified_identification_variable
- Throws:
ParseException
-
general_identification_variable
- Throws:
ParseException
-
entity_type_comp
- Throws:
ParseException
-
type_discriminator
- Throws:
ParseException
-
entity_type_expression
- Throws:
ParseException
-
scalar_expression
- Throws:
ParseException
-
case_expression
- Throws:
ParseException
-
general_case_expression
- Throws:
ParseException
-
when_clause
- Throws:
ParseException
-
simple_case_expression
- Throws:
ParseException
-
simple_when_clause
- Throws:
ParseException
-
coalesce_expression
- Throws:
ParseException
-
nullif_expression
- Throws:
ParseException
-
negative
- Throws:
ParseException
-
string_value
- Throws:
ParseException
-
string_expression
- Throws:
ParseException
-
string_primary
- Throws:
ParseException
-
datetime_expression
- Throws:
ParseException
-
datetime_primary
- Throws:
ParseException
-
boolean_value
- Throws:
ParseException
-
boolean_expression
- Throws:
ParseException
-
boolean_primary
- Throws:
ParseException
-
enum_expression
- Throws:
ParseException
-
enum_primary
- Throws:
ParseException
-
enum_literal
- Throws:
ParseException
-
entity_bean_value
- Throws:
ParseException
-
entity_bean_expression
- Throws:
ParseException
-
functions_returning_strings
- Throws:
ParseException
-
concat
- Throws:
ParseException
-
substring
- Throws:
ParseException
-
trim
- Throws:
ParseException
-
lower
- Throws:
ParseException
-
upper
- Throws:
ParseException
-
trim_specification
- Throws:
ParseException
-
functions_returning_numerics
- Throws:
ParseException
-
length
- Throws:
ParseException
-
locate
- Throws:
ParseException
-
abs
- Throws:
ParseException
-
sqrt
- Throws:
ParseException
-
mod
- Throws:
ParseException
-
size
- Throws:
ParseException
-
index
- Throws:
ParseException
-
functions_returning_datetime
- Throws:
ParseException
-
orderby_clause
- Throws:
ParseException
-
orderby_item
- Throws:
ParseException
-
orderby_extension
- Throws:
ParseException
-
abstract_schema_name
- Throws:
ParseException
-
tok
- Throws:
ParseException
-
identification_variable
- Throws:
ParseException
-
path_component
- Throws:
ParseException
-
literal
- Throws:
ParseException
-
numeric_literal
- Throws:
ParseException
-
integer_literal
- Throws:
ParseException
-
decimal_literal
- Throws:
ParseException
-
boolean_literal
- Throws:
ParseException
-
string_literal
- Throws:
ParseException
-
string_literal2
- Throws:
ParseException
-
date_literal
- Throws:
ParseException
-
time_literal
- Throws:
ParseException
-
timestamp_literal
- Throws:
ParseException
-
input_parameter
- Throws:
ParseException
-
collection_valued_input_parameter
- Throws:
ParseException
-
named_input_parameter
- Throws:
ParseException
-
positional_input_parameter
- Throws:
ParseException
-
pattern_value
- Throws:
ParseException
-
escape_character
- Throws:
ParseException
-
trim_character
- Throws:
ParseException
-
EQ
- Throws:
ParseException
-
NE
- Throws:
ParseException
-
GT
- Throws:
ParseException
-
GE
- Throws:
ParseException
-
LT
- Throws:
ParseException
-
LE
- Throws:
ParseException
-
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
ReInit
Reinitialise. -
getNextToken
Get the next Token. -
getToken
Get the specific Token. -
generateParseException
Generate ParseException. -
enable_tracing
public final void enable_tracing()Enable tracing. -
disable_tracing
public final void disable_tracing()Disable tracing.
-