The moose likes Developer Certification (SCJD/OCMJD) and the fly likes UpdateRecord and CreateRecord 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 "UpdateRecord and CreateRecord" Watch "UpdateRecord and CreateRecord" New topic

UpdateRecord and CreateRecord

Aruneesh Salhotra
Ranch Hand

Joined: May 12, 2004
Posts: 167
For CreateRecord/UpdateRecord, the key is the combination of

But there could be multiple listing from the same hotel. How do track the DuplicateKey in this case.

Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11765

Hi Aruneesh,

Have you considered that you might not need to worry about it? Just because your method signature declares that you can throw a particular exception does not mean that you must throw it - you could leave it in the signature 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
Aruneesh Salhotra
Ranch Hand

Joined: May 12, 2004
Posts: 167
My question is more to do with, what is the key supposed to be.
I agree. Here's the link:
subject: UpdateRecord and CreateRecord
jQuery in Action, 3rd edition