if(cql.isPreparable()) {
BoundStatement bs = getBoundStatement(session, cql);
try {
return session.execute(bs);
} catch(NoHostAvailableException e) {
throw new RhombusTimeoutException(e);
} catch(QueryExecutionException e2) {
throw new RhombusTimeoutException(e2);
}
} else {
//just run a normal execute without a prepared statement
try {
return session.execute(cql.getQuery());
} catch(NoHostAvailableException e) {
throw new RhombusTimeoutException(e);
} catch(QueryExecutionException e2) {
throw new RhombusTimeoutException(e2);
}
}
}