aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes What is the best selection of KEY 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 "What is the best selection of KEY" Watch "What is the best selection of KEY" New topic
Author

What is the best selection of KEY

Aruneesh Salhotra
Ranch Hand

Joined: May 12, 2004
Posts: 167
It is not specified what the primary key of the DB file.

Is it safe to assume that "hotel/city" is safe to assume, i.e. one specific hotel cannot have more than one room listed.

What is the best selection of KEY.


Also for the UI, do we need to provide a screen (Jframe or JWindow) so that one can create records.
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11460
    
  94

Hi Aruneesh,

You might want to consider whether it is necessary for you to find a primary key. That is - even though there is an exception declared that indicates that there might be a primary key, the current data might not be suited to having a primary key. In which case you could simply leave the exception defined but never throw it in your code - just leave it for future enhancements .

Regards, Andrew


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What is the best selection of KEY