Win a copy of Android Programming: The Big Nerd Ranch Guide this week in the Android forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

NX:Question about validation flag  RSS feed

 
HaoZhe Xu
Ranch Hand
Posts: 222
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the first 2 bytes of a record is a flag determine the record's existance, should my update method contain it? If yes, when should I use that 2 bytes?
 
George Marinkovich
Ranch Hand
Posts: 619
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I took the position that it was not reasonable to update a deleted record and under those circumstances would throw a RecordNotFoundException.
-- George
[ December 18, 2003: Message edited by: George Marinkovich ]
 
Bill Robertson
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I took the position that it was not reasonable to update a deleted record and under those circumstances would throw a RecordNotFoundException.

Exactly! Why would you expose to the user a deleted record for updates?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!