This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

UpdateRecord and CreateRecord

 
Aruneesh Salhotra
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For CreateRecord/UpdateRecord, the key is the combination of
flag/hotel/location/occ/smoking/rate/date/owner.

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

Help!.
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11865
194
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Aruneesh Salhotra
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My question is more to do with, what is the key supposed to be.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic