public static GroovyRowResult toRowResult(ResultSet rs) throws SQLException {
  ResultSetMetaData metadata=rs.getMetaData();
  Map<String,Object> lhm=new LinkedHashMap<String,Object>(metadata.getColumnCount(),1);
  for (int i=1; i <= metadata.getColumnCount(); i++) {
    lhm.put(metadata.getColumnLabel(i),rs.getObject(i));
  }
  return new GroovyRowResult(lhm);
}

public static GroovyRowResult toRowResult ( ResultSet rs ) throws SQLException { ResultSetMetaData metadata = rs . getMetaData ( ) ; Map < String , Object > lhm = new LinkedHashMap < String , Object > ( metadata . getColumnCount ( ) , 1 ) ; for ( int i = 1 ; i <= metadata . getColumnCount ( ) ; i ++ ) { lhm . put ( metadata . getColumnLabel ( i ) , rs . getObject ( i ) ) ; } return new GroovyRowResult ( lhm ) ; }
returns a groovyrowresult given a resultset .
