Should I implement search on the server-side as I did in client-side or in a different way searching throught all fields which might be cubersome?!
Kai:
Coz I want to write GUI on SERVER-SIDE too.
Can you please explain the difference between "search on client" and "search on server"?
Originally posted by Seid Myadiyev:
In my specs I have 2 statements:
1.
// Returns an array of record numbers that match the specified
// criteria ...
// criteria[n] matches any field value that begins with criteria[n]...
public long[] findByCriteria(String[] criteria);
2.
- It must allow the user to search the data for all records,
or for records where the name and/or location fields exactly match values specified by the user.
My question is: how is one not compatible with the other? Could you please clarify these points?
// 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".)
Regards, George
SCJP, SCJD, SCWCD, SCBCD
// 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 long[] findByCriteria(String[] criteria);
Sun Certified Web Component Developer 1.4<br />Sun Certified Java Developer 1.4<br />IBM Certified Associate Developer - WebSphere Studio, V5.0 (285)<br />IBM Certified Specialist - IBM WebSphere Application Server, Adv Single Server Edition for Multiplatforms, V4.0 (158)<br />IBM Certified Solutions Expert - IBM Websphere Studio V4.0 (487)<br />IBM Certified Specialist - IBM Visual Age for Java V4.0 (283)<br />Sun Certified Java Programmer 1.2
Originally posted by Sanjay Joshi:
I have made my search to be case sensitive, and the matches any field that begins with the criteria value as asked... am I missing anything?![]()
It must allow the user to search the data for all records, or for records where the name and/or location fields exactly match values specified by the user.
Regards, George
SCJP, SCJD, SCWCD, SCBCD
Good heavens! What have you done! Here, try to fix it with this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|