File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes NX:Question about validation flag 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 "NX:Question about validation flag" Watch "NX:Question about validation flag" New topic
Author

NX:Question about validation flag

HaoZhe Xu
Ranch Hand

Joined: Nov 03, 2003
Posts: 222
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?


[url]Olnex.net[/url]
[SCJP 1.2, SCJD, SCWCD]
George Marinkovich
Ranch Hand

Joined: Apr 15, 2003
Posts: 619
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 ]

Regards, George
SCJP, SCJD, SCWCD, SCBCD
Bill Robertson
Ranch Hand

Joined: Mar 21, 2003
Posts: 234

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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NX:Question about validation flag