This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes delete a record Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "delete a record" Watch "delete a record" New topic
Author

delete a record

subu ananthram
Ranch Hand

Joined: May 16, 2004
Posts: 102
// Deletes a record, making the record number and associated disk
// storage available for reuse.
// Throws SecurityException if the record is locked with a cookie
// other than lockCookie.

I thought that if I was to delete a record I would just mark it as deleted
and let it be reused but from my instruction am I to construe I get rid of the row totally ??Any ideas what is everyone doing
Regards
Subu
Mark Smyth
Ranch Hand

Joined: Feb 04, 2004
Posts: 288
Originally posted by subu ananthram:
// Deletes a record, making the record number and associated disk
// storage available for reuse.


Not to worry you are on the right track. Marking a record as deleted does make the record number and disk storage available for reuse. This is because the create method can use any record slot marked as deleted and can overwrite it with the new record data.


SCJP<br />SCJD
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: delete a record
 
Similar Threads
urlybird 1.1.1 (int recNo)
using access bean
delete method
Database Circular Reference
pass scjd, graded in 4 days.