I have been pondering the interfaces I am required to implement for a while now.
If I am reading through the file to do the find, then why not just capture the records and return them instead of the record numbers? Perhaps Sun is encouraging me to read all the records into a structure which is supposed to be searched during the find operation. But, that would be a duplication of data, on disk, and held in the structure.
I have my problems with this interface too. In addition to only returning the record numbers (and what good does that do the GUI?) it returns the results for an inexact match, but my requirements state that the GUI has to match its records exactly. So you can do the additional filtering on the client side, or you can add it as a layer on the server side. It is not a requirement that the Data class be your RMI layer...