Originally posted by James Kitten:
With reference to the methods defined in the DBMain interface. It suggests to me that the records "marked as deleted" should also be included in the find() method. Otherwise, the handling of the recNo becomes complicated.
Am I correct, or have I missed something basic?
JK
Anton Golovin (anton.golovin@gmail.com) SCJP, SCJD, SCBCD, SCWCD, OCEJWSD, SCEA/OCMJEA [JEE certs from Sun/Oracle]
Originally posted by James Kitten:
Hi Anton,
I see the problem as follows:
at start-up of the Data class (database server), I need to read all of the available records and pass them to the GUI. Now, lets say I have 5 records defined, but recNo 2 is marked as deleted on the disk. If I do not pass ALL 5 records, how can the GUI ask me to update recNo 3 later (because the GUI would treat it as recNo 3, if I filter deleted recNo 2). Bearing in mind that I can only use the methods in the DBMain interface (ie arrays)
Is there a better way?
I also think that filtering at the Data level is incorrect. To me that is a business rule. The data server is there simply to persist data records. Typically, in the real world an "Admin" mode would display all data defined in the file.
Comments?
Anton Golovin (anton.golovin@gmail.com) SCJP, SCJD, SCBCD, SCWCD, OCEJWSD, SCEA/OCMJEA [JEE certs from Sun/Oracle]
Anton Golovin (anton.golovin@gmail.com) SCJP, SCJD, SCBCD, SCWCD, OCEJWSD, SCEA/OCMJEA [JEE certs from Sun/Oracle]