/** * Executes a cassandra statement asynchronously. Ensures the callback is executed on the correct vert.x context. * * @param statement the statement to execute * @return the promise for the {@link com.datastax.driver.core.ResultSet} */ @Override public Promise<ResultSet> executeAsync(Statement statement) { return convertFuture(session.executeAsync(statement)); }
/** * Executes a cassandra CQL query asynchronously. Ensures the callback is executed on the correct vert.x context. * * @param query the CQL query to execute * @return the promise for the {@link com.datastax.driver.core.ResultSet} */ @Override public Promise<ResultSet> executeAsync(String query) { return convertFuture(session.executeAsync(query)); }
/** * Prepares the provided query statement * * @param statement the query statement to prepare * @return the promise for the {@link com.datastax.driver.core.PreparedStatement} */ @Override public Promise<PreparedStatement> prepareAsync(RegularStatement statement) { return convertFuture(session.prepareAsync(statement)); }
/** * Executes a cassandra statement asynchronously. Ensures the callback is executed on the correct vert.x context. * * @param statement the statement to execute * @return the promise for the {@link com.datastax.driver.core.ResultSet} */ @Override public Promise<ResultSet> executeAsync(Statement statement) { return convertFuture(session.executeAsync(statement)); }
/** * This is a convenience method for {@code executeAsync(new SimpleStatement(query, values))}. * * @param query * @param values * @return */ @Override public Promise<ResultSet> executeAsync(String query, Object... values) { return convertFuture(session.executeAsync(query, values)); }
/** * Prepares the provided query statement * * @param statement the query statement to prepare * @return the promise for the {@link com.datastax.driver.core.PreparedStatement} */ @Override public Promise<PreparedStatement> prepareAsync(RegularStatement statement) { return convertFuture(session.prepareAsync(statement)); }
/** * This is a convenience method for {@code executeAsync(new SimpleStatement(query, values))}. * * @param query * @param values * @return */ @Override public Promise<ResultSet> executeAsync(String query, Object... values) { return convertFuture(session.executeAsync(query, values)); }
/** * Prepares the provided query * * @param query the query to prepare * @return the promise for the {@link com.datastax.driver.core.PreparedStatement} */ @Override public Promise<PreparedStatement> prepareAsync(String query) { return convertFuture(session.prepareAsync(query)); }
/** * Executes a cassandra CQL query asynchronously. Ensures the callback is executed on the correct vert.x context. * * @param query the CQL query to execute * @return the promise for the {@link com.datastax.driver.core.ResultSet} */ @Override public Promise<ResultSet> executeAsync(String query) { return convertFuture(session.executeAsync(query)); }
/** * Prepares the provided query * * @param query the query to prepare * @return the promise for the {@link com.datastax.driver.core.PreparedStatement} */ @Override public Promise<PreparedStatement> prepareAsync(String query) { return convertFuture(session.prepareAsync(query)); }