posted 20 years ago
Thanks Andrew:
You are right, I should document the problem. I don't worry about my code. What I think is if the method
is a reasonable design. Sun should document it clearly and tell us the following assumption:
We should assume findByCriteria can't find the number of records beyond max int. But that is not enough, because "It must allow the user to search the data for all records"( I think here "search" also means transmit and display). Therefore, we should also asume "all records" in db file is less than max integer. If we assume that, use integer as the record number is enough.
If we didn't assume that, the solution would be use long[] array or ArrayList or Vector to transmit data many times. the method seek(long pos) alow us to do that.
Peter