• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Do I follow specification or implement the interface

 
Ta Ri Ki Sun
Ranch Hand
Posts: 442
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the instructions.html emphasizes the importance of satisfying any requirement where the word "must" is used.
that said the interface contradicts one of the requirements.
in the javadoc for the interface the findByCriteria method says '(For example, "Fred" matches "Fred" or "Freddy".)
and a requirement in the User Interface says "records where .... exactly match values specified by the user."
I suppose I could implement either one and defend it in my documentation, the interface being a little more user friendly, but the UI spec is very clear about this requirement.
do I e-mail sun or is this one of those choices i have to make and defend ?
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you use JComboBoxes with actual values from the db.db file, and that is all that the user can select, then your criteria string will always have exact matches. So just code for those matches and you will be fine.
Mark
 
Max Habibi
town drunk
( and author)
Sheriff
Posts: 4118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tariq,
Are you sure that's not for two different methods? I seem to recall that it was.
M, author
The Sun Certified Java Developer Exam with J2SE 1.4
 
Ta Ri Ki Sun
Ranch Hand
Posts: 442
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Max Habibi:
Tariq,
Are you sure that's not for two different methods? I seem to recall that it was.
M, author
The Sun Certified Java Developer Exam with J2SE 1.4

just double checked, and theres only one finder method Max
 
Ta Ri Ki Sun
Ranch Hand
Posts: 442
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Mark Spritzler:
If you use JComboBoxes with actual values from the db.db file, and that is all that the user can select, then your criteria string will always have exact matches. So just code for those matches and you will be fine.
Mark


thanks Mark, I hadn't thought of that, its been almost 3 years since I smelled anything swing, and I also haven't started designing this app yet, but I'll definately keep that in mind
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic