Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

delete method of B&S

 
mohini lalwani
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Each record has delete flag in begining so when
to implement delete method then which field should be updated ? or complete record will be deleted ? or just update delete flag with 1 .

In my assignment written .
1 byte "deleted" flag. 0 implies valid record, 1 implies deleted record
 
satishkumar janakiraman
Ranch Hand
Posts: 334
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

The record should not be deleted from db. you should set the flag in the beginning of the record. If you delete the record physically, you will be failed

sat
 
mohini lalwani
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks satish
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic