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 Book & Search? 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 Book & Search?" Watch "URLyBird Book & Search?" New topic

URLyBird Book & Search?

Allan Cheong
Ranch Hand

Joined: Nov 12, 2009
Posts: 71


The requirement of the assignment are to allow booking and searching for rooms. But in my application, I plan to filter records that date available has passed - meaning old records won't be shown in JTable. So, the question is, the accessors will not be able to book or search for records since the data in the .db file are older than today's date.

Is it ok? Or else, I would need to add a function to add new records so that the accessors would be able to test out new records.

Roberto Perillo

Joined: Dec 28, 2007
Posts: 2271

Howdy, Allan!

Champion, this isn't really necessary... just pull all records from the database and show them in the JTable. This isn't a requirement, so keep it simple and don't do it!

Cheers, Bob "John Lennon" Perillo
SCJP, SCWCD, SCJD, SCBCD - Daileon: A Tool for Enabling Domain Annotations
Roel De Nijs

Joined: Jul 19, 2004
Posts: 8384

Hi Allan,

Like Roberto already mentioned: just implement the things that are required, no need to do extras (you won't receive extra points, in fact you may only lose points when it has a flaw for example).
Because I use a record cache I mentioned your approach (filtering old records when initializing the record cache in Data class) as a solution for handling memory issues when the size of the database file keeps increasing (in my choices.txt). But I didn't implement it (even the 48 hours rule I just ignored, a decision which was explained too in the decisions document).

Kind regards,

SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
Allan Cheong
Ranch Hand

Joined: Nov 12, 2009
Posts: 71

Thank you that's what I thought the answer would be . But still seems a bit weird that the application would not be that useful if administration functions are not included. Anyway, I will only provide the book and search method, as required by the assignment.
I agree. Here's the link:
subject: URLyBird Book & Search?
It's not a secret anymore!