aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "URLyBird Book & Search?" Watch "URLyBird Book & Search?" New topic
Author

URLyBird Book & Search?

Allan Cheong
Ranch Hand

Joined: Nov 12, 2009
Posts: 71

Hi,

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.


SCJP6, SCJD, OCJWCD5
Roberto Perillo
Bartender

Joined: Dec 28, 2007
Posts: 2266
    
    3

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
Bartender

Joined: Jul 19, 2004
Posts: 5406
    
  13

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,
Roel


SCJA, SCJP (1.4 | 5.0 | 6.0), SCJD
http://www.javaroe.be/
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.
 
Consider Paul's rocket mass heater.
 
subject: URLyBird Book & Search?