| Author |
Update on deleted record
|
Keith Jones
Ranch Hand
Joined: Oct 30, 2006
Posts: 105
|
|
|
Just wondered what decision everyone else has made about calling update on a record marked as deleted?
|
SCJP 1.4
|
 |
Sam Codean
Ranch Hand
Joined: Feb 26, 2006
Posts: 194
|
|
Deleted record cannot be updated!!! Read the Comments on the DBMain interface clearly [ November 16, 2006: Message edited by: Sam Codean ]
|
-Sam Codean<br />SCJP 1.4 (98%)<br />SCJD 5.0 (87.5%)
|
 |
Keith Jones
Ranch Hand
Joined: Oct 30, 2006
Posts: 105
|
|
|
there's nothing in the spec that explicitly says we can't update a deleted record.
|
 |
Mark Smyth
Ranch Hand
Joined: Feb 04, 2004
Posts: 288
|
|
|
Thats what a RecordNotFoundException is thrown for, any attempt to update, read or delete a non existent record
|
SCJP<br />SCJD
|
 |
Mihai Radulescu
Ranch Hand
Joined: Sep 18, 2003
Posts: 912
|
|
Hi
Any methods that throw RecordNotFoundException should do so if a specified record does not exist or is marked as deleted in the database file.
I extract this from my specification, I think it needs no extra comments. Regards M
|
SCJP, SCJD, SCWCD
|
 |
 |
|
|
subject: Update on deleted record
|
|
|