@Override public int[] executeBatchUpdate(BatchPreparedStatementHandler<Db> psHandler) throws NestedSQLException { List<Integer> results = new ArrayList<>(); context.getOrmContext().getDao().doTransaction(t -> { for (String sqlString : sqlParamMap.keySet()) { Object[][] params = sqlParamMap.get(sqlString); int[] result = context.getJdbcExecutor().executeBatchUpdate(sqlString, params, null, psHandler); results.addAll(Arrays.stream(result).boxed().collect(Collectors.toList())); } }); return Arrays2.toIntArray(results); } }