This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes URLYBird Search Requirement 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 "URLYBird Search Requirement" Watch "URLYBird Search Requirement" New topic
Author

URLYBird Search Requirement

Tim Fernandez
Ranch Hand

Joined: Aug 31, 2005
Posts: 65
Hi All,

In the URLy Bird specs, it says '...It must allow the user to search the data for all records, or for records where the name and/or location fields exactly match values speficied by the user'

search all records - Does this mean when both fields are empty, clicking the search will display all results?Or when loading the page it should already display all the results and that's it?Which of the two is better to implement?

name and/or location fields - Does this mean there should be a flag for 'name AND location search' and a flag for 'name OR location search?


thanks in advance,
tim
Sam Codean
Ranch Hand

Joined: Feb 26, 2006
Posts: 194
Hi Tim,
I am also planning to give the SCJD Test. Please could you give me the specs so that i can get a understanding of how the questions are.
Thanks in advance
Sameer


-Sam Codean<br />SCJP 1.4 (98%)<br />SCJD 5.0 (87.5%)
Sam Codean
Ranch Hand

Joined: Feb 26, 2006
Posts: 194
Oops i am sorry i did not read the rules where it said we should not exchange the questions!!
I am sorry!!
I think i will wait till i get the Question for me ;-)
-Sameer
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11465
    
  94

Hi Tim,

When this issue has been discussed in the past, we have come to the conclusion that it is badly worded English (possibly deliberatly ). With that in mind, how you handle this can come down to your interpretation of that sentence.

My personal interpretation is:
  • It must allow the user to search the data for all records, or
  • It must allow the user to search the data for all records where the name field exactly match values speficied by the user, or
  • It must allow the user to search the data for all records where the name and location fields exactly match values speficied by the user, or
  • It must allow the user to search the data for all records where the location fields exactly match values speficied by the user

  • I believe this meets the requirements (and I didn't loose points in my GUI or Data classes for doing this), and makes my life much easier than trying to allow an "and/or" option on the client side (with it's associated re-evaluating of search results on the client side).

    Regards, Andrew


    The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
     
    GeeCON Prague 2014
     
    subject: URLYBird Search Requirement