Package com.datastax.driver.core

Examples of com.datastax.driver.core.BoundStatement.bind()


    public void markAsUnused( Iterable<BinaryKey> keys ) throws BinaryStoreException {
        PreparedStatement preparedStatement = session.prepare("UPDATE modeshape.binary SET usage = ?, usage_time = ? WHERE cid = ?");
        try {
            for (BinaryKey key : keys) {
                BoundStatement statement = new BoundStatement(preparedStatement);
                session.execute(statement.bind(0, new Date(), key.toString()));
            }
        } catch (RuntimeException e) {
            throw new BinaryStoreException(e);
        }
    }
View Full Code Here


    PreparedStatement statement = session.prepare(query);
   
    BoundStatement boundStatement = new BoundStatement(statement);

    Object[] valueArr = batchValues.toArray();
    boundStatement.bind(valueArr);
   
    return boundStatement;
  }
 
  public String getBatchQuery(boolean atomicBatch) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.