title: How set Array/List in Spring jdbcTemplate as parameter?
body: <p>I have SQL query with many placeholders '?', that builds dynamically, I want to put array of values to replace placeholders. Size of array can be different every time. Array consists from all parameters in order.</p>
  
  <pre><code>return jdbcTemplate.query(Queries.someQuery,
      new Object[] {/* Array must be here */},
      new ResultSetExtractor&lt;List&lt;String&gt;&gt;() {
          @Override
          public List&lt;String&gt; extractData(ResultSet resultSet) 
          }
      });
  </code></pre>
  
  <p>Example of sql generations: </p>
  
  <pre><code>for (int j = 0; j &lt; y; j++) {
          conditionsBuilder.append("\n and p"+i+".object_id=o.object_id\n" +
                  "    and p"+i+".attr_id =?\n" +
                  "    and p"+i+".value =?\n");
          tablesBuilder.append(",patameters p"+i+" ");
          i++;
      }
  </code></pre>