I am almost done implementing my Data class. However, to be sure and confident of what I have done so for, I need to ask some questions:
1. Which is better, in other wards safer and correct, to synchronize the RandomAccessFile instance representing the underlying database file, or synchronize on an arbitrary object, in order to allow concurrent access to the database file
2. When a record is read from the database file, if one of the fields was blank, then which is more appropriate to do:
a. assign null to the corresponding cell in the String array to be returned.
b. leave things unchanged and assign whatever value to the field cell in the String array to be returned.
My idea is, the absence of value means null, Am I correct? Because if I do so, then I have to be consistent and trim the padded spaces in case the field text value is less then the length of the field in question!? so the String array returned will conatin only exact length of the fields and disregard spaces.
hope to hear from you soon.
Thanx
Hatim