NX:deleted flag as a field
posted 13 years ago
Well, it's like a field, but it has special properties. When you do a read(recNo) and return a String containing the field values, I don't think you should return the deleted flag as one of those fields. For one thing, the instructions never call it a "field", and never really imply it should be treated the same as the others. For another, there's no point really in returning its value, because if you're returning any values, the deleted flag must be false. Because if deleted were true, you're required to throw RecordNotFoundException rather than return. Users should never be able to see a deleted record anyway - the only records displayed are those where the deleted flag is false. So the user doesn't need to actually see the deleted flag - it's useless. Does that make sense?