Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

caching and redundant search method

 
Stephen Anson
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've gone for the Record caching method.
In my design this appears to leave a redundant search method as specified in Suns DBAccess interface.

To clarify this:
My Data class which implements DBAccess is responsible for accessing the underlying data file.
Searches will only ever be performed on a Set of cached Records in another class altogether.
Is it really necessary to implement this method in order to satisfy Sun?

thanks Steve :-)
 
Inuka Vincit
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Says MUST, you got to do it . In my assignment I cant even use the search fucntion specified directly... but yes you must implement it.
[ October 27, 2004: Message edited by: Inuka Vincit ]
 
Stephen Anson
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks yet again!
Steve
 
Dieskun Koper
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think I am not the only one who has implemented these unused methods in a similar way as the AbstractCollection's add method is implemented.
I think I can defend that choice. Can you defend your choice of implementing a method of which you have no specification, just a few lines of Javadoc.

On the other hand, I could be wrong and not get passed the automated tests
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic