• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB QL

 
Satish Gopalakrishnan
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic