public class ExtendedQueryCommand<R> extends QueryCommandBase<R>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
batch |
protected String |
cursorId |
protected int |
fetch |
PreparedStatement |
ps |
protected String |
sql |
protected boolean |
suspended |
protected Object |
tuples |
NULL_COLLECTORhandler| Modifier and Type | Method and Description |
|---|---|
static <R> ExtendedQueryCommand<R> |
createBatch(String sql,
PreparedStatement ps,
List<Tuple> tuples,
boolean autoCommit,
Collector<Row,?,R> collector,
QueryResultHandler<R> resultHandler) |
static <R> ExtendedQueryCommand<R> |
createQuery(String sql,
PreparedStatement ps,
Tuple tuple,
boolean autoCommit,
Collector<Row,?,R> collector,
QueryResultHandler<R> resultHandler) |
static <R> ExtendedQueryCommand<R> |
createQuery(String sql,
PreparedStatement ps,
Tuple tuple,
int fetch,
String cursorId,
boolean suspended,
boolean autoCommit,
Collector<Row,?,R> collector,
QueryResultHandler<R> resultHandler) |
String |
cursorId() |
int |
fetch() |
boolean |
isBatch() |
boolean |
isSuspended() |
List<Class<?>> |
parameterTypes() |
Tuple |
params() |
List<Tuple> |
paramsList() |
String |
prepare()
Prepare and validate the tuple.
|
PreparedStatement |
preparedStatement() |
String |
sql() |
autoCommit, collector, resultHandlercomplete, fail, failprotected final String sql
public PreparedStatement ps
protected final boolean batch
protected final Object tuples
protected final int fetch
protected final String cursorId
protected final boolean suspended
public static <R> ExtendedQueryCommand<R> createQuery(String sql, PreparedStatement ps, Tuple tuple, boolean autoCommit, Collector<Row,?,R> collector, QueryResultHandler<R> resultHandler)
public static <R> ExtendedQueryCommand<R> createQuery(String sql, PreparedStatement ps, Tuple tuple, int fetch, String cursorId, boolean suspended, boolean autoCommit, Collector<Row,?,R> collector, QueryResultHandler<R> resultHandler)
public static <R> ExtendedQueryCommand<R> createBatch(String sql, PreparedStatement ps, List<Tuple> tuples, boolean autoCommit, Collector<Row,?,R> collector, QueryResultHandler<R> resultHandler)
public String prepare()
null if the tuple preparation was successfull otherwise the validation errorpublic boolean isBatch()
public List<Class<?>> parameterTypes()
public Tuple params()
public PreparedStatement preparedStatement()
public int fetch()
public String cursorId()
public boolean isSuspended()
public String sql()
sql in class QueryCommandBase<R>Copyright © 2021. All rights reserved.