code: public Java8CompositeHandler withQueryHandler1(RowListQueryHandler h) {
          final QueryHandler qh = new QueryHandler() {
                  public QueryResult apply(String sql, List<Parameter> ps)
                      throws SQLException {
                      return h.apply(sql, ps).asResult();
                  }
              };
  
          return withQueryHandler(qh);
      }
docs: Returns handler that delegates query execution to |h| function.
  Given function will be used only if executed statement is detected
  as a query by withQueryDetection.
  
  @param h the new query handler
  
  <pre>
  {@code
  import acolyte.jdbc.StatementHandler.Parameter;
  import static acolyte.jdbc.AcolyteDSL.handleStatement;
  
  handleStatement.withQueryHandler1((String sql, List<Parameter> ps) -> {
  if (sql == "SELECT * FROM Test WHERE id = ?") return aRowList;
  else return anotherRowList;
  });
  }
  </pre>