What Is the EJB Query Language?
The EJB Query Language (EJB QL) is a SQL-like language defined for use with EJB 2.0 CMP. EJB QL is what you use to define the queries that determine the results of finder and select methods. Select methods didn’t exist prior to EJB 2.0, and every vendor had a different syntax for defining finder methods. EJB QL offers portability across vendors using a syntax based on a subset of SQL92. Because it’s based on SQL, the language is easy to learn if you’re comfortable with relational databases. More importantly, once you learn it, you won’t have to learn a new query language if you later switch CMP implementations. The introduction of the EJB QL is central to the goal of portability across CMP implementations touted ...
Get Special Edition Using Enterprise JavaBeans™ 2.0 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.