4 Replies Latest reply: Mar 22, 2011 6:21 AM by 800268 RSS

    How to store a DB row (multiple columns) from ResultSet object to hm/ht

    835297
      I am trying to store a DB row (which is containing ~150+ columns) from ResultSet Object to HashMap/Hashtable using the below code. But I wonder is, this not working and even do not get any error.

      dataslotHashmap.put(rsmd.getColumnName(i+1),rs.getObject(i+1));

      where "rsmd" ResultSetMetaData Object and "rs" is ResultSet Object.

      Need advice please