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 delete a record Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: delete a record
 
Similar Threads
using access bean
pass scjd, graded in 4 days.
urlybird 1.1.1 (int recNo)
Database Circular Reference
delete method