Package org.springframework.jdbc.core

Examples of org.springframework.jdbc.core.JdbcTemplate.queryForList()


                    String info = dbmd.getDatabaseProductName() + " " + dbmd.getDatabaseProductVersion();
                    return info;
                }

            });
            List<Map<String, Object>> data = jdbcTemplate.queryForList("select * from customer");
            sqlData = data.toString();
        } catch (MetaDataAccessException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
View Full Code Here


 
  @SuppressWarnings("unchecked")
  @Override
  public RowIterator iterator() {
    JdbcTemplate jdbcTemplate = new JdbcTemplate(dataSource);
    List<Map<String, Object>> rows = jdbcTemplate.queryForList(dataSourceSql);
    Map<Object, Map<String, Object>> allCatalogues = new HashMap<Object, Map<String, Object>>(rows.size());
    for (Map<String, Object> row : rows) {
      allCatalogues.put(row.get(idField), row);
    }
   
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.