title: Java ResultSet copy to generic object or list
body: <p>I'm aware of the issues with using ResultSet and have seen examples about extracting data into an object (or list), however, I'm wanting to do this in a generic manner i.e. without having to be aware of the class.  </p>
  
  <p>Is there a way to do this such that the result would be an Object or List that I could then iterate using Reflection?</p>
  
  <p>The solutions I've examined that either don't seem to work or require class awareness of the target class include:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/14929818/how-to-copy-resultset-into-object">How to copy resultset into object?</a></li>
  <li><a href="https://stackoverflow.com/questions/3817785/copying-java-resultset">Copying Java ResultSet</a></li>
  </ul>
  
  <p>I've also tried ResultSetMapper (<a href="http://resultsetmapper.sourceforge.net/" rel="nofollow noreferrer">http://resultsetmapper.sourceforge.net/</a>) and it seems to require the class as well.  I really just want an Object or List that I can act on.</p>