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?