jdbcTemplate execute multiple sql statements in one batch
<p>I'm using Spring jdbcTemplate for my DAO layer. And i have at least two sql statements that i want to execute in a single query to hit the database once:</p>

<pre><code>String INSERT_SQL = "INSERT INTO \"ADDRESS\" (id_registred_user, "
                                           + "address, "
                                           + "city, "
                                           + "region, "
                                           + "country) "
                                           + "VALUES (?, ?, ?, ?, ?)";

String UPDATE_SQL = "UPDATE \"REGISTRED_USER\" SET id_address = ? "
                  + "WHERE id_registred_user = ?";
</code></pre>

<p>For now i'm doing this inside @Transactional:</p>

<pre><code>jdbcTemplate.update(INSERT_SQL, args...);
jdbcTemplate.update(UPDATE_SQL, args...);
</code></pre>

<p>I know that in simple jdbc there is an addBatch() method, but how can i execute these two sql statements in a single batch using jdbcTemplate? Is there an addBatch() equivalent in jdbcTemplate?</p>

<p>Thanks in advance.</p>