0

NamedParameterJdbcTemplate in Spring has a method called batchUpdate which accepts a Map<String, ?>[] array as a parameter. How do I construct one of those?

Here are some examples of what I've tried doing:

Map<String, Object>[] rows = new Map<String, Object>[] { };

Map<String, Object>[] rows = new HashMap<String, Object>[] { };

List<Map<String, Object>> rowList = new ArrayList<>();
Map<String, Object>[] rows = rowList.toArray();

None of those work. How do I do it?

Owen Pauling
  • 11,349
  • 20
  • 53
  • 64
soapergem
  • 9,263
  • 18
  • 96
  • 152

0 Answers0