I don't have the exact source code that you're looking for, but go through DAO pattern spc set of raw set strategy, i.e RowSet Wrapper List Strategy.
It uses TO and TOA pattern which is the recommended way to pass query results back to the client. You can dig into Sun websites for J2EE core patterns source code samples, it gives you an idea how to deal with such data transmission from BO tiers to clients.