Example 2

This query returns all products in a specified price range.
It defines two query parameters which are the lower and upper bound
for the price: double low, double high. The filter compares the query
parameters with the price field:

Example 3

This query returns all players having a higher salary than the
player with the specified name. It defines a query parameter for the
name java.lang.String name. Furthermore, it defines
a variable to which the player’s salary is compared. It has
the type of the persistence capable class that corresponds to the
bean:

mypackage.PlayerEJB_170160966_JDOState player

The filter compares the salary of the current player denoted
by the this keyword with the salary of the player
with the specified name: