Top "Jdbctemplate" questions

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

Roll back A if B goes wrong. spring boot, jdbctemplate

I have a method, 'databaseChanges', which call 2 operations: A, B in iterative way. 'A' first, 'B' last. 'A' & 'B' …

java oracle spring-boot jdbctemplate spring-transactions
Java Programming - Spring and JDBCTemplate - Use query, queryForList or queryForRowSet?

My Java (JDK6) project uses Spring and JDBCTemplate for all its database access. We recently upgraded from Spring 2.5 to Spring 3 (…

java spring recordset jdbctemplate
How to set custom connection properties on DataSource in Spring Boot 1.3.x with default Tomcat connection pool

I need to set some specific Oracle JDBC connection properties in order to speed up batch INSERTs (defaultBatchValue) and mass …

spring-boot connection-pooling jdbctemplate ojdbc tomcat-jdbc
Spring JDBCTemplate gives InvalidResultSetAccessException Invalid column index

I use Spring's SimpleJDBCTemplate to access Oracle DB. Here is my code. String sql = "SELECT from_bin_code FROM hbin_…

java spring sqlexception jdbctemplate
How exactly work the Spring RowMapper interface?

I am studying for the Spring Core certification and I have some doubts about how Spring handle the JDBC queries: …

java spring spring-jdbc jdbctemplate
Execute SQL file from Spring JDBC Template

I'm trying to write a bit of code that reads a SQL file (multiple CREATE TABLE statements separated by ;) and …

java spring jdbctemplate
What is proper way to use PreparedStatementCreator of Spring JDBC?

As per my understanding the use of PreparedStatement in Java is we can use it multiple times. But I have …

spring prepared-statement jdbctemplate spring-jdbc
return a boolean - jdbcTemplate

I would like to return a boolean value using in this method: public Boolean isSizeOk(String transactionId){ String sqlQuery = "SELECT …

boolean return jdbctemplate
multiple one-to-many relations ResultSetExtractor

Let's say I have an object with two different one-to-many relations. Much like: Customer 1<->M Brands and …

java spring jdbc jdbctemplate spring-jdbc
Does Spring JDBC provide any protection from SQL injection attacks?

Spring's JdbcTemplate abstraction provides a lot of functionality, but can it be used in such a way that provides protection …

spring sql-injection jdbctemplate