hi everybody.
guys i have some questions about my find method:
// Returns an array of record numbers that match the specified
// criteria. Field n in the database file is described by
// criteria[n]. A null value in criteria[n] matches any field
// value. A non-null value in criteria[n] matches any field
// value that begins with criteria[n]. (For example, "Fred"
// matches "Fred" or "Freddy".)
public int [] find(
String [] criteria) throws RecordNotFoundException;
1. in my implementation when the size of the "criteria" is > 0 then i return the record that match
for any criteria. Is this right ? Someone used regular expression in this method?
2. in this method the sun interface only throw RecordNotFoundException, but in my implementation i
have to read the data file, so may i have to throw an IOException too. Can add more exception for my method?
i have the same doubt about create, read, modify and delete methods...
thanks,