File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes EJB QL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "EJB QL" Watch "EJB QL" New topic
Author

EJB QL

Satish Gopalakrishnan
Ranch Hand

Joined: Feb 13, 2001
Posts: 52
Is is possible to ignore some parameters dynamically or check for nullity and then include them in the Query.
I have a finder method with 5 possible search criteria but it is possible that only 2 are supplied in which case i want to eliminate the other 3...how do i do this...the params i am talking abt are dates..
Any help will be appreciated
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
Dynamic queries are not a part of EJB QL 2.0. However, many vendors provide extensions to allow this type of functionality.
So the answer is: Yes, but not in a vendor independent way.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJB QL
 
Similar Threads
How add JLabels as headers for JPopupMenu's menuitem sections?
File Upload Button CSS
Refreshing the Servlet
Is it possible to write document based client for RPC based webservice?
How to reuse mouseClicked() in the same code to do diffrent tasks?