aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark ""It must allow the user to search the data for all records"" Watch ""It must allow the user to search the data for all records"" New topic
Author

"It must allow the user to search the data for all records"

josine wilms
Ranch Hand

Joined: Jan 23, 2006
Posts: 45
Good evening you all, don't yet.

The User Interface part states for the search functionality:

"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."

I'm fine with the second part (I have implemented that succesfully).

I don't know exactly what to do with the bold part.

I'm thinking about this example:
I do a free search on "hil".
Should any record come up where this query is to be seen as a "substring" in any piece of data for any field? EG Hilton, Chillcity, Hil.

How you guys have implemented this or am I trying to do too much work to implement this?

Cheers,
Josine


SCJP 1.4<br />SCWCD 1.4<br />SCJD <br />SCEA (new version) Work in progress...
Oricio Ocle
Ranch Hand

Joined: Nov 30, 2004
Posts: 284

Hello josine.
I have interpreted it as: "return all records in the database".
Here is a snapshot of my search bean:


Regards


SCJP, OCMJD, OCMJEA
Ken Boyd
Ranch Hand

Joined: Dec 10, 2003
Posts: 329
I have doing same by providing "Find All" button..


SCJP, SCWCD, SCBCD, SCJD, BB Java2 and JSP1.1
Oricio Ocle
Ranch Hand

Joined: Nov 30, 2004
Posts: 284

Ey Ken mine is a never ending asignment too
josine wilms
Ranch Hand

Joined: Jan 23, 2006
Posts: 45
Thank you for your answers. Probably that will be the right way to implement it. I shouldn't try to make an extra search option for the case of "any 'substring' in any field of any record" then.

I still think the sentence is awquard. Grrr.

I'm wondering how other people have interpreted this :roll:
Please people who have implemented the search part too, do have a response on this line.


Good luck to you!

Josine
[ September 24, 2006: Message edited by: josine wilms ]
Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 916

Hallo Guys,

Here are my choices :
1.I keep my search dialog clean - so I only use it for search. The purpose of the search widget is to define a search criteria.
2.I have a search all available - it does the same stuff like search but this
onyl for available records
3.I have some get all (available and unavailable) records trigders (menu and toolbar) and get all available (only the available records).

Regards M.


SCJP, SCJD, SCWCD, OCPJBCD
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: "It must allow the user to search the data for all records"