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 Booking the selected record 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 "Booking the selected record" Watch "Booking the selected record" New topic

Booking the selected record

Mike Tilling
Ranch Hand

Joined: Feb 17, 2006
Posts: 86

It is indicated in the assignment (UrlyBird) :
�They take bookings only within 48 hours of the start of room occupancy�

It also describes the field owner as follows:
�If this field is all blanks, the record is available for sale�

It describes the date field as follows:
�Date available : The single night to which this record relates, format is yyyy/mm/dd.�

In my implementation:
1- On a create operation, I choose to provide all values except the customer,
I suppose the newly created record is for future booking purpose.

2- The record is ready for booking if date is today (the record is available for today)
Tomorrow or after tomorrow regardless of what does the owner field contain.

I am worried about this spec about the field owner "If this field (owner)
is all blanks, the record is available for sale". The booking system is
Based on the record availability and not on the content of the owner field.

Do I fit with the exam spec?
I agree. Here's the link:
subject: Booking the selected record
It's not a secret anymore!