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
  • 9,864
  • 18
  • 50
  • 58
soapergem
  • 7,597
  • 16
  • 79
  • 124

0 Answers0