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 URLyBird Search all records 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 all records" Watch "URLyBird Search all records" New topic

URLyBird Search all records

Didier Varon

Joined: Jul 14, 2005
Posts: 24
In the assignment description 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 specified by the user."

So what I was doing is displaying all records if no criteria is enter by the user, but does it make sense to display records that are not in the 48 hours rule?
Robert Bar
Ranch Hand

Joined: Jun 29, 2006
Posts: 38

I prefer not to modify search results, because even CRS take bookings only within 48 hours, they can advise customers about hotel rooms available after booking deadline. "48h rule" can be checked on-the-fly, for example it is possible to disable "Book" button when unavailable room is selected.

regards, Robert
Daniel Massie

Joined: Jan 08, 2005
Posts: 28
In my search results I display 'bookable' rooms with a different background colour to those that are not available for booking at that time whether its because they are already booked or fall out of the 48 hour period.
Thirumurugan Mylrajan
Ranch Hand

Joined: Jan 26, 2006
Posts: 64
What if a customer calls and asks to find out if he has booked the room..

I think the search is necessary. Booking validation is entirely a different story.

SCJP , SCJD. (IBM 142 in progress).
I agree. Here's the link:
subject: URLyBird Search all records
It's not a secret anymore!