Could any one help me with this question:
If I execute JDBC batchUpdate, which updates several tables and is not wrapped into any transactions, will it lock any tables or rows?
My code executes a bunch of UPDATE statements and all of them look as follows
String sql = "UPDATE contacts SET ref_counter = ? where uid = ?";
jdbcTemplate.batchUpdate(sql, new CustomBatchPreparedStatementSetter(elements));
Any link to documentation will be appreciated (I haven’t managed to find any…)
Thanks in advance!
Locking (if any) is implementation dependent, so not defined by JDBC itself.