Top "Jdbctemplate" questions

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

Best practice to select data using Spring JdbcTemplate

I want to know what is the best practice to select records from a table. I mentioned two methods below …

java spring jdbctemplate
JdbcTemplate queryForInt/Long is deprecated in Spring 3.2.2. What should it be replaced by?

The queryforInt/queryforLong methods in JdbcTemplate are deprecated in Spring 3.2. I can't find out why or what is considered the …

java spring jdbc jdbctemplate
update a row using spring jdbctemplate

I am new to spring. I am developing a CRUD application using spring jdbc template. I am done with insert …

spring jdbctemplate
using Spring JdbcTemplate - injecting datasource vs jdbcTemplate

As per Spring documentation, the steps to use Spring JdbcTemplate is as follows: <?xml version="1.0" encoding="UTF-8"?> <…

java spring dependency-injection jdbctemplate
passing different types of arguments to jdbctemplate query

I am trying to retrieve records from the database by using where clause with few different types of arguments. This …

spring spring-mvc jdbctemplate
JPA vs Spring JdbcTemplate

For a new project is JPA always the recommended tool for handling relational data or are there scenarios where Spring …

java spring jpa jdbctemplate spring-jdbc
Why Spring's jdbcTemplate.batchUpdate() so slow?

I'm trying to find the faster way to do batch insert. I tried to insert several batches with jdbcTemplate.update(…

java mysql spring spring-batch jdbctemplate
Using Spring JdbcTemplate to extract one string

Can't seem to find a way to get one string from table using JdbcTemplate query. This is the table my …

java sql hsqldb jdbctemplate
Getting "Invalid column type" excecption, while using NamedParameterJDBCTemplate for insertion

I am using below code while inserting a row into database(oracle 10g xe,jar: ojdbc14.jar) String sql = "INSERT …

spring spring-mvc oracle10g jdbctemplate spring-jdbc
what is difference between ResultSetExtractor vs Rowmapper?

I worked on both row mapper and resultset extractor call back interfaces.I found difference i.e., 1.Row mapper can …

spring jdbctemplate