Chapter 3 Creating J2EE Applications for Sybase EAServer


Defining EJB-QL

You can define EJB-QL for finders and ejbSelect methods.

For CMP EJBs, finders are only defined in remote home and local home interfaces. ejbSelect methods are defined in bean classes.

Steps To define EJB-QL:

  1. Create a finder method or an ejbSelect method.
  2. Open the property sheet of the finder method or the ejbSelect method.
  3. Define the list of parameters of the method.
  4. Click on the Implementation tab and then click on the EJB-QL sub-tab to enter EJB-QL statements for a finder or ejbSelect method:

 


Copyright (C) 2005. Sybase Inc. All rights reserved.