• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

findByCriteria vs. User Interface guidelines

 
Cyrill Ruettimann
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In the section 'The User Interface':

It must ... where the name and/or location fields exactly match the values specified by the user.


In the interface declaration for findByCriteria():

..matches any field values that begins with criteria[n]


I am a bit lost because I have to implement the interface (they run for sure the test against this interface) and have to conform to the guidelines (must).

How do you interpret this?

Regards,

Cyrill
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12007
215
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Cyrill,

Welcome to JavaRanch and this forum.

Perhaps it helps if you remember that these are instructions for two totally seperate sections. One is for the database, and one is for the GUI.

If you were working in a big company, it is quite possible that these sorts of requirements could be set, especially if you have two different teams working on the two different sections.

It is worth noting that the requirements for the database are fairly open, but the requirements for the GUI are far more strict. This is easily achievable, whereas the opposite would be quite difficult.

Regards, Andrew
 
Thomas Paul Bigbee
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was a little bit confused by this one myself, URLYBird is a modification of a previous assignment created 1997, called Flight Reservation or something like that, I had done this assignment several years ago, the interface already was implemented, so there was no question on how it was to be done, I suppose you could post a question to Sun or you could use the approach listed below, which does both, however I'm just going to use the startsWith and mark the decision that I made in the documentation. I'll check back to see if anybody who has implemented this and passed has given you any more feedback

 
Cyrill Ruettimann
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Thanks for the response. Andrew, you mean there is something like a filter/adapter between the database implementation and the GUI who makes sure that records returned by the database (begins with) are filtered out to achive the GUI requirements (match exactly).

Regards,

Cyrill
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 12007
215
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Cyrill,

Exactly.

Regards, Andrew
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic