Developing custom finders

In this section, we develop custom finders for the banking model with Application Developer. For the basics of finder methods, read “EJB custom query methods” on page 140.

Here is a short recapitulation:

  • There are two kind of methods: finder methods in the home interface and select methods in the bean class.

  • These methods can be mapped to EJB query language.

  • EJB QL statements are specified in the deployment descriptor.

  • SQL statements are generated from EJB QL into deployed classes.

The process of defining custom finder methods is very simple:

  • Open the deployment descriptor editor and select an entity bean.
  • Create a new finder method and specify the method name and signature (parameters), and select the local or remote interface. ...

Get EJB 2.0 Development with WebSphere Studio Application Developer 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.