Package org.apache.openjpa.kernel.jpql
Class JPQL
java.lang.Object
org.apache.openjpa.kernel.jpql.JPQL
- All Implemented Interfaces:
JPQLConstants
,JPQLTreeConstants
-
Field Summary
Modifier and TypeFieldDescriptionNext token.protected JJTJPQLState
Current 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, WHERE
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
-
Constructor Summary
ConstructorDescriptionJPQL
(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 void
abs()
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
avg()
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
concat()
final void
final void
final void
final void
final void
final void
final void
final void
count()
final void
final void
final void
final void
final void
final void
final void
Disable tracing.final void
distinct()
final void
final void
final void
Enable tracing.final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
EQ()
final void
final void
final void
final void
final void
final void
final void
final void
final void
GE()
final void
final void
Generate ParseException.final Token
Get the next Token.final Token
getToken
(int index) Get the specific Token.final void
final void
final void
final void
GT()
final void
final void
final void
final void
final void
index()
final void
final void
final void
final void
final void
LE()
final void
length()
final void
final void
literal()
final void
final void
locate()
final void
lower()
final void
LT()
static void
final void
max()
final void
min()
final void
mod()
final void
final void
NE()
final void
negative()
final void
final void
final void
final void
final void
final void
final void
final void
final void
final Node
final void
path()
final void
final void
final void
final void
final void
void
ReInit
(InputStream stream) Reinitialise.void
ReInit
(InputStream stream, String encoding) Reinitialise.void
Reinitialise.void
Reinitialise.final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
final void
size()
final void
final void
sqrt()
final void
final void
final void
final void
final void
final void
final void
subquery()
final void
final void
final void
final void
final void
final void
final void
sum()
final void
final void
final void
tok()
final void
trim()
final void
final void
final void
final void
final void
final void
final void
upper()
final void
final 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.
-