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

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?


  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic