Network Deployment (Distributed operating systems), v8.0 > Develop and deploying applications > Develop Dynamic and EJB query > Develop applications that use EJB query
EJB query language
EJB query language enables you to write queries based on entity beans without knowing the underlying relational schema.
An EJB query is a string that contains the following elements:
- a SELECT clause that specifies the enterprise beans or values to return;
- a FROM clause that names the bean collections;
- an optional WHERE clause that contains search predicates over the collections;
- an optional GROUP BY and HAVING clause; see the topic Aggregation functions.
- an optional ORDER BY clause that specifies the ordering of the result collection.
Collections of entity beans are identified in EJB queries through the use of their abstract schema name in the query FROM clause.
The elements of EJB query language are discussed in more detail in the following related topics.
Inheritance in EJB query
ORDER BY clause
UNION clause operation
EJB query language limitations and restrictions
EJB query compatibility issues with SQL
Database restrictions for EJB query
Rules for data type manipulation in EJB query
EJB query: Reserved words
EJB query: BNF syntax
EJB specification and WebSphere query language comparison
Use EJB query