EJB QL provides a few built-in functions for performing some common string and arithmetic manipulations to build your queries. The functions that are supported are standard SQL operations that all JDBC 2.0 and higher drivers are required to support. String FunctionsEJB QL supports the following string manipulation functions:
Arithmetic FunctionsEJB QL supports the following arithmetic functions:
Currently, there's no support for aggregate functions, such as MIN and MAX , in EJB QL. That likely will be added in later versions of the specification. Until then, you're somewhat limited in what you can do in a select method. |