WebSphere Application Server Network Deployment, Version 6.0.x   Operating Systems: AIX, HP-UX, Linux, Solaris, Windows
             [TIP: Focusing the table of contents and search results]

EMPTY collection predicate

You can use the EMPTY collection predicate to test if a multivalued relationship has no members.

Use the following syntax:
collection-valued-path-expression  IS [NOT]  EMPTY

Example: Empty collection predicate

To find all departments with no employees:
SELECT OBJECT(d) FROM DeptBean d  WHERE  d.emps IS EMPTY



Related concepts
EJB query language
WHERE clause
Related tasks
Using EJB query
Concept topic    

Terms of Use | Feedback

Last updated: Mar 8, 2007 8:14:28 PM CST
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/cque_emptycoll.html

© Copyright IBM Corporation 2002, 2006. All Rights Reserved.
This information center is powered by Eclipse technology. (http://www.eclipse.org)