• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Do I follow specification or implement the interface

 
Ranch Hand
Posts: 442
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ?
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
town drunk
( and author)
Posts: 4118
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Good heavens! What have you done! Here, try to fix it with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic