O'Reilly logo

J2EE™ Applications and BEA™ WebLogic Server™ by Sandra L. Emerson, Rob Woollen, Michael Girdley

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

Writing EJB-QL for CMP Finders

The EJB-QL language is based on SQL-92 and should be familiar to database users. EJB-QL is used for finders and ejbSelect methods. Finder methods always return the entity bean's remote interface or a Collection containing remote interfaces.

Select methods are like finder methods, but they can return any of the container-managed fields. Select methods are not exposed in the remote interface and are called against an identified instance. Finders run against an anonymous instance. A select method is similar to a data access method on a stateless session bean. The advantage of using an ejbSelect method is that the query operates on the container-managed fields and relationships and is independent of the physical schema. ...

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