File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Search Results 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 "Search Results" Watch "Search Results" New topic

Search Results

Jonathan Wright

Joined: Jan 27, 2005
Posts: 1
I'm making some design decisions about my TableModel and would appreciate some feedback regarding whether or not results should be ordered. Is it overkill to give the client the option to specify the ordering of their search results prior to a search and also after results have been displayed.

In a real world application I would implement this kind of functionality but for this exam its hard to know!
Eric Chang
Ranch Hand

Joined: Jan 27, 2004
Posts: 113
I tend to believe that that would be overkill. One of the problems I had while doing this assignment is thinking too much on how a real-world application would work, which resulted in me spending way more time on the assignment than necessary. My thinking is that if it's not a requirement, then it's out of scope, and therefore I'm not going to do it unless my application fails to work without it. Remember, there are no extra brownie points.
Clivant Yeo
Ranch Hand

Joined: May 22, 2004
Posts: 124
I provide the option to sort after the records had been returned, so as not to add on to the server's processing load.


Clivant Yeo
My Personal Website
Frans Janssen
Ranch Hand

Joined: Dec 29, 2004
Posts: 357
I sort the results, merely for my own comfort, after I have read the search results (also client-side). I did this by implementing the Comparable interface on my Contractor class and storing the search results in a TreeSet.

I have considered allowing the user to sort the results on any field, but I have rejected this, because I think it goes beyond the scope of the assignment.


I agree. Here's the link:
subject: Search Results
It's not a secret anymore!