• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DuplicateKeyException

 
YungSheng Chang
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Data Class, DuplicateKeyException must be thrown in createRecord() method based on the instruction document.
It is straightforward in real world database. Table owner could define their own unique key to indicate no other rows could have the same key.
However, In URLyBird system:
1. Could we assume the unique key?
2. If #1 is yes, where should the business lay? hardcode it or make it a assumption in our document?
3. If #1 is no. Can I assume duplicate means all field value is the same?
thanks....
 
Michael Fitzmaurice
Ranch Hand
Posts: 168
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi YungSheng
If you do a search for 'DuplicateKeyException' in this forum you will find a lot of useful discussion about this subject, e.g. this thread
Hope this helps
Michael
 
Vlad Rabkin
Ranch Hand
Posts: 555
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi YungSheng ,
My implementation ignored this exception. I documented it.
Best,
Vlad
 
Philippe Maquet
Bartender
Posts: 1872
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Michael,
Mmh... Entering this thread, I thought, because I had a link in mind : "That's a one it will be easy to reply to." . But now that I see that we have the same references , I have nothing easy to write anymore ... except that it's nice to read you again on this forum .
Hope we meet again soon here in other discussions.
Best,
Phil.
 
Michael Fitzmaurice
Ranch Hand
Posts: 168
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Phil
You know what they say 'Great minds think alike'...
I haven't really been away from JR, just reading this forum a lot more than writing.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic