Top "Jdbctemplate" questions

The JdbcTemplate class is a key part of the Spring Framework JDBC abstraction.

JDBCTemplate queryForMap for retrieving multiple rows

Can I use queryForMap if there are multiple rows returned by the query. For a single row, the below code …

java spring spring-3 jdbctemplate
Inserting multiple rows using JdbcTemplate

How can I execute the following SQL in a scalable way using JdbcTemplate running on mySQL. In this case, scalable …

java sql spring jdbc jdbctemplate
JDBCTemplate set nested POJO with BeanPropertyRowMapper

Given the following example POJO's: (Assume Getters and Setters for all properties) class User { String user_name; String display_name; } …

java spring postgresql jdbctemplate
JdbcTemplate.update() insert return values

JdbcTemplate.update() returns number of rows affected - so you not only know that delete/update was sucessfull, you also …

java spring-mvc db2 spring-jdbc jdbctemplate
why spring jdbcTemplate batchUpdate insert row by row

I have 200K rows to be inserted in one single database table. I tried to use jdbcTemplate.batchUpdate in spring …

java sql spring sybase jdbctemplate
Spring JdbcTemplate / NamedParameterJdbcTemplate passing null value as a parameter value

I have an issue passing a null value to NamedParameterJdbcTemplate using MapSqlParameterSource of the spring framework. Anyone knows how to …

spring jdbc jdbctemplate
How to search string LIKE 'something%' with Java Spring Framework?

I've got a MySQL table with Foos. Each Foo has a numeric non-unique code and a name. Now I need …

java spring jdbctemplate spring-jdbc
IncorrectResultSetColumnCountException: Incorrect column count: expected 1, actual 38

I am using JdbcTemplate to retrieve a Bean from the db. Here is my method: public List<trackerv3Livedata&…

java spring jdbctemplate
Multiple DataSource and JdbcTemplate in Spring Boot (> 1.1.0)

I would like to inject a specific JdbcTemplatein a Spring Boot project. I tried to follow this example for multiple …

java spring spring-boot jdbctemplate spring-annotations
How to use SELECT IN clause in JDBCTemplates?

This is my first experience with JDBCTemplates and I ran into a case where I need to use a query …

jdbctemplate