The standard EJB 2.0 container- managed persistence (CMP) query language
known as EJB QL allows users to retrieve container-managed entity beans,
subject to constraints that are described using the same object-relationship
model that was constructed to describe beans in EJB deployment.
With this language you can reduce large classes of search problems to the
task of writing queries that can be expressed in a straightforward and
natural manner.
Some classes of problems can't be solved using the capabilities of standard
EJB QL, however. One such class can be described intuitively as "that class
of problems for which a single scan of the retrieval candidates isn't enough
to narrow down the beans that qualify to be selected." For example, suppose
you have a set of beans tha... (more)