title: How to bind IN-clause values in a CQL 3 prepared statement?
body: <p>I have a table that is roughly like</p>
  
  <pre><code>create table mytable (
     id uuid,
     something text,
     primary key (id)
  );
  </code></pre>
  
  <p>I'm trying to create a prepared statement that has a bound in-clause:  </p>
  
  <pre><code>PreparedStatement ps = session.prepare("select * from mytable where id IN (?)");
  ...
  UUID[] ids = { uuid1, uuid2, uuid3} ;
  </code></pre>
  
  <p>No matter how I express the ids to bind, the java driver rejects them.</p>
  
  <p><code>ps.bind( /*as array*/)</code>:  driver complains statement has only one value, 2 supplied</p>
  
  <p><code>ps.bind( /*as comma separated string list of uuids*/)</code>:  driver complains it wants UUID.class objects, not strings</p>
  
  <p><code>ps.bind( /*as list object*/)</code>: driver complains it wants UUID.class objs, not a List.class object</p>
  
  <p>I really hope the driver isn't expecting as many ? place holders as there are values in the in-list, because that means you'd have to reprepare the statement every time you wanted to execute it, which the Datastax docs says not to do!</p>
  
  <p>I looked at the <code>com.datastax.driver.core.BoundStatement.bind()</code> method and there is no indication that anything else would work - no magic wrappers or anything.</p>
  
  <p>Is there a way to do this?</p>