You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by ashish paliwal <as...@gmail.com> on 2009/06/25 05:59:58 UTC

Purpose of JPQLExpressionBuilder.getQueryExpressions() method

Hi,

I wanted to know that what exactly does
JPQLExpressionBuilder.getQueryExpressions() method does. Specifically, I am
concerned with what is it doing to QueryExpressions.Expression
(exps.filter).
>From my debugging I figured out(I might be wrong though) that in case I have
a simple query like "select p from person p join p.address a where a.city =
'kanpur'", it initializes "filter" to BingVariableAndExpression type and in
case there is no where in query then "filter" is initialized to
BindVariableExpression type. Based on this type, the call is made in
SelectConstructor.buildWhere to build the query expression.

Any help is greatly appreciated. Thanks in advance.

regards

-- 
Ashish Paliwal
Mobile : 9305128367
IIT Kanpur
India