public final class QueryBuilder extends Object
Constructor and Description |
---|
QueryBuilder(String sql,
Database db)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
clearParameters() |
com.github.davidmoten.rx.jdbc.QueryContext |
context()
Returns the query's
QueryContext . |
rx.Observable<?> |
depends()
Returns the dependencies of the query.
|
void |
dependsOn(rx.Observable<?> dependency)
Appends a dependency to the dependencies that have to complete their
emitting before the query is executed.
|
void |
dependsOnLastTransaction()
Appends a dependency on the result of the last transaction (
true for commit or false for rollback) to the
dependencies that have to complete their emitting before the query is
executed. |
void |
parameter(Object value)
Appends a parameter to the parameter list for the query.
|
rx.Observable<com.github.davidmoten.rx.jdbc.Parameter> |
parameters()
Returns the parameters for the query.
|
void |
parameters(Object... objects)
Appends the given parameter values to the parameter list for the query.
|
<T> void |
parameters(rx.Observable<T> params)
Appends the given parameters to the parameter list for the query.
|
String |
sql()
Returns the sql of the query.
|
public <T> void parameters(rx.Observable<T> params)
params
- public void parameters(Object... objects)
objects
- public void parameter(Object value)
value
- public void dependsOn(rx.Observable<?> dependency)
dependency
- public void dependsOnLastTransaction()
true
for commit or false
for rollback) to the
dependencies that have to complete their emitting before the query is
executed.public String sql()
public rx.Observable<com.github.davidmoten.rx.jdbc.Parameter> parameters()
public rx.Observable<?> depends()
public com.github.davidmoten.rx.jdbc.QueryContext context()
QueryContext
.public void clearParameters()
Copyright © 2014. All rights reserved.