• Post Reply Bookmark Topic Watch Topic
  • New Topic

Is HashSet the best option to process the result of a LEFT OUTER JOIN in the DAO?

Renato Losio
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


I need to perform a LEFT OUTER JOIN (actually two of them) to retrieve all the information I need to return about my "contacts".

As the rs of the query might include multiple records for the same contact (and I might have a rs set of up to 3000 items) what is the best way to process it in my DAO class to return my contact objects?

I do not like to go through a list for every record and check if one with that id is already there. Is HashSet a sensible option? Any suggestion?


Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!