• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Finding Records

 
Patrick McDonogh
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In URLyBirds there is an interface defined for the Data class. In there there is a method which states :

"Returns an array of record numbers that match the specified
criteria"

At the moment this does not include deleted records, but i am wondering if it should include deleted records as there is no mention about not including the deleted records.

Thanks a lot for the help, i know some of my questions are silly im just very new to Java and certification.
 
Seb Mathe
Ranch Hand
Posts: 225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After calling this method, you'll probably want to deal with matching records. But what can you do with "matching but deleted" records ?
 
Patrick McDonogh
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK i see, so what your saying is return all the records which match the criteria (including deleted records) and then decide what to do with the record numbers which are deleted afterwards i.e. where the method was called from.

Thankyou
 
Seb Mathe
Ranch Hand
Posts: 225
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

so what your saying is return all the records which match the criteria (including deleted records)


Not really...
As I can't see what we can do with "matching but deleted" records, I don't include them in the returned recNos...
 
Edwin Dalorzo
Ranch Hand
Posts: 961
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do not see a great deal of importance in returning the deleted records, either.

Have you ever seen a Data Access Layer implementation for a decent database that provides such a functionality?

However, at the end URLyBird requirements are not very clear and they are based in common sense. If you can justify that in the design choices file, so be it!.

I would recommend however, that you take a few minutes to determine the specific uses cases you are going to develop, because the specification provided by Sun is terrible short and you cannot even figure out if you're doing more thant what they'd request. How could you possible know that?

Once again, common sense!
[ October 20, 2005: Message edited by: Edwin Dalorzo ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic