This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes URLyBird 48 hour restriction on old db file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "URLyBird 48 hour restriction on old db file" Watch "URLyBird 48 hour restriction on old db file" New topic
Author

URLyBird 48 hour restriction on old db file

Didier Varon
Greenhorn

Joined: Jul 14, 2005
Posts: 23
Hi guys,

On the URLyBird assignment there is a restriction about booking time:
"They take bookings only within 48 hours of the start of room occupancy"

But when I am reading the db file I have found that all records are for previous years (2003 to 2005), so any query returns an empty set, because I am using the machine's date to validate against the records' date to enforce this requirement.

I am wondering if I am using a right criterion for that validation or if I should download the application again.
Jeroen T Wenting
Ranch Hand

Joined: Apr 21, 2006
Posts: 1847
They mean (I think, I'd have to have the entire paragraph to be sure) that you can only book a room for an arrival date that's no more than 48 hours later than the booking date.

So if today is 28/04/2006 you cannot accept a booking for a date later than 30/04/2006 (and you may have to use the actual time of day as well, if that's stored in the database).

But as I don't do UrlyBird I can't be 100% certain, as I don't have the original text to check against.


42
B Chen
Ranch Hand

Joined: Dec 27, 2005
Posts: 89
If the availability date is 4/28/2006, then you can book the room on 4/26 and 4/27. You cannot book the room on any other date, past or future.
When I did the assignment, I wrote a small program that changed the date on some records so I can test.


SCJD<br />SCJP 1.4
Didier Varon
Greenhorn

Joined: Jul 14, 2005
Posts: 23
Thanks B Chen,

I think I understand now =)
Ken Boyd
Ranch Hand

Joined: Dec 10, 2003
Posts: 329
You can change your PC date close to 48 hours to match records in db. Even my URLBird has dates of 2005 and need to change PC clock to test 48 hours rule. Even if you download assignment again you will get same files.


SCJP, SCWCD, SCBCD, SCJD, BB Java2 and JSP1.1
Didier Varon
Greenhorn

Joined: Jul 14, 2005
Posts: 23
Thank's Ken,
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: URLyBird 48 hour restriction on old db file
 
Similar Threads
URLyBird Book & Search?
UrlyBird : Queries
URLyBird 1.1.3: Functionality Doubts...
UrlyBird Functional Requirements
URLybird