O'Reilly logo

Applied Enterprise JavaBeans™ Technology by Kevin Boone

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

13.5. EJB QL overview

EJB QL is defined in detail in the EJB Specification [EJB2.0 11], which includes some relatively helpful examples, so only a basic introduction will be given here. Some practical examples from the Prestige Bike Hire application are described later in the chapter.

13.5.1. Structure of an EJB QL query

EJB QL is superficially similar to SQL, for obvious reasons, but has only ‘SELECT’ functionality. There are no ‘UPDATE’, ‘INSERT’, or ‘DELETE’ operations in EJB QL. In fact, EJB QL reflects the smallest common subset of common SQL SELECT operations. All relational databases will offer functionality that is inexpressible in EJB QL; this issue is an important one, and we will return to it later.

EJB QL queries all have the following ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required