Modifier and Type | Class and Description |
---|---|
static class |
QueryUpdate.Builder
Builds a
QueryUpdate . |
static class |
QueryUpdate.ReturnGeneratedKeysBuilder |
Modifier and Type | Method and Description |
---|---|
com.github.davidmoten.rx.jdbc.QueryContext |
context()
Returns the query context including
ConnectionProvider and
Scheduler . |
rx.Observable<Integer> |
count()
Returns the results of an update query.
|
rx.Observable<?> |
depends()
Returns the Observables that have to complete before this query is
started.
|
List<String> |
names()
Returns the list of names corresponding positionally to the ? characters in
the sql.
|
rx.Observable<com.github.davidmoten.rx.jdbc.Parameter> |
parameters()
Returns the parameters for the query in order of appearance as ? markers
in the sql.
|
ResultSetMapper<? extends T> |
returnGeneratedKeysFunction() |
String |
sql()
Returns the sql statement for this query following JDBC format (? for
parameters for instance).
|
String |
toString() |
public String sql()
Query
public rx.Observable<com.github.davidmoten.rx.jdbc.Parameter> parameters()
Query
parameters
in interface Query
public com.github.davidmoten.rx.jdbc.QueryContext context()
Query
ConnectionProvider
and
Scheduler
.public rx.Observable<?> depends()
Query
public List<String> names()
Query
public rx.Observable<Integer> count()
Observable
of size 1 containing the number of records affected by the update (or
insert) statement.query
- public ResultSetMapper<? extends T> returnGeneratedKeysFunction()
Copyright © 2014–2015. All rights reserved.