File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Clarification on CriteriaFind Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Clarification on CriteriaFind" Watch "Clarification on CriteriaFind" New topic

Clarification on CriteriaFind

christy smile
Ranch Hand

Joined: Oct 15, 2001
Posts: 101
Hi, All,
I have a question about CriteriaFind() method.
What is the correct behavior if the user does not either a destination or origination? Is it going to treat it as "any" is entered for the blank criteria?? What if nothing is entered at all? My implementation reports no route is available if neither is entered. But if one criteria is entered, it will treat the empty criteria as "any" and use the other criteria to search. Is this the correct interpretation??
Thank you!
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

Is this the correct interpretation??

I really believe that this is a design choice for you to decide.
If you where using the application and you wanted to search for flights, and you left them blank, what would you expect.
I expected to see all flights, but that is just me, you might think differently here and that is 100% fine.

Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: Clarification on CriteriaFind
jQuery in Action, 3rd edition