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);
}
}