EJB query contains scalar functions for doing type conversions, string manipulation, and for manipulating date-time values. The list of scalar functions is documented in the topic EJB query: Scalar functions.
Example: Scalar functions
SELECT OBJECT(e) FROM EmpBean e where YEAR(e.hireDate) = 1999
The other scalar functions should be used only when DB2 is the backend datastore.