Class ExtendedQueryCommand<R>


public class ExtendedQueryCommand<R> extends QueryCommandBase<R>
Author:
Julien Viet
  • Method Details

    • createQuery

      public static <R> ExtendedQueryCommand<R> createQuery(String sql, PrepareOptions options, io.vertx.sqlclient.internal.PreparedStatement ps, Tuple tuple, boolean autoCommit, Collector<Row,?,R> collector, io.vertx.sqlclient.internal.QueryResultHandler<R> resultHandler)
    • createQuery

      public static <R> ExtendedQueryCommand<R> createQuery(String sql, PrepareOptions options, io.vertx.sqlclient.internal.PreparedStatement ps, Tuple tuple, int fetch, String cursorId, boolean suspended, boolean autoCommit, Collector<Row,?,R> collector, io.vertx.sqlclient.internal.QueryResultHandler<R> resultHandler)
    • createBatch

      public static <R> ExtendedQueryCommand<R> createBatch(String sql, PrepareOptions options, io.vertx.sqlclient.internal.PreparedStatement ps, List<Tuple> tuples, boolean autoCommit, Collector<Row,?,R> collector, io.vertx.sqlclient.internal.QueryResultHandler<R> resultHandler)
    • options

      public PrepareOptions options()
    • prepare

      public String prepare(io.vertx.sqlclient.internal.PreparedStatement ps)
      Prepare and validate the tuple.
      Returns:
      null if the tuple preparation was successfull otherwise the validation error
    • isBatch

      public boolean isBatch()
    • paramsList

      public List<io.vertx.sqlclient.internal.TupleBase> paramsList()
      Returns:
      the list of parameters for batch execution
    • parameterTypes

      public List<Class<?>> parameterTypes()
      Returns:
      the list of parameter types built from the tuple
    • params

      public io.vertx.sqlclient.internal.TupleBase params()
      Returns:
      the parameters for query execution
    • preparedStatement

      public io.vertx.sqlclient.internal.PreparedStatement preparedStatement()
    • fetch

      public int fetch()
    • cursorId

      public String cursorId()
    • isSuspended

      public boolean isSuspended()
    • sql

      public String sql()
      Specified by:
      sql in class QueryCommandBase<R>