'How does spring jdbc batchUpdate(sql,BatchPreparedStatementSetter pss) work internally?

<pre>
    jdbcTemplate.batchUpdate(sql, new BatchPreparedStatementSetter() {
                            @Override
                            public void setValues(PreparedStatement ps, int i) throws SQLException {
        setValues;
        setValues;
        setValues;
                            @Override
                            public int getBatchSize() {
                                return list.size();
                            }
                        });
</pre>

I would be grateful if any one help me understand spring jdbc batchUpdate(sql,BatchPreparedStatementSetter pss) work internally ?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source