Query assembly settings

Use these to specify a finder or SELECT query.

A query element contains the following:

  • Optional description of the query
  • Name of the finder or SELECT method that uses the query
  • The return type of mapping, if it is used
  • Whether the query is for a SELECT method
  • EJB query language (EJB QL) query string that defines the query

Queries that are expressed in EJB QL must use the ejb-ql element to specify the query. If a query cannot be expressed in EJB QL, describe the semantics of the query by using the description element and leave the ejb-ql element empty.

Name
Contains the name of an enterprise bean method or the asterisk (*) character. An asterisk in the method-name element denotes all methods of an enterprise bean's remote and home interfaces.
Parameters
Contains a list of the fully-qualified Java names of the method parameters.
Result type
Used in the query element to indicate whether a returned abstract schema type for a SELECT method should be mapped to an EJBLocalObject or EJBObject type.