public static class QueryUpdate.ReturnGeneratedKeysBuilder extends Object
Constructor and Description |
---|
QueryUpdate.ReturnGeneratedKeysBuilder(com.github.davidmoten.rx.jdbc.QueryBuilder builder) |
Modifier and Type | Method and Description |
---|---|
<T> rx.Observable<T> |
autoMap(Class<T> cls)
Transforms each row of the
ResultSet into an instance of
T using automapping of the ResultSet columns into
corresponding constructor parameters that are assignable. |
rx.Observable<Integer> |
count() |
<T> rx.Observable<T> |
get(ResultSetMapper<? extends T> function)
Transforms the results using the given function.
|
<T> rx.Observable<T> |
getAs(Class<T> cls)
Automaps the first column of the ResultSet into the target class
cls . |
<T1,T2> rx.Observable<Tuple2<T1,T2>> |
getAs(Class<T1> cls1,
Class<T2> cls2)
Automaps the columns of the
ResultSet into the specified
classes. |
<T1,T2,T3> rx.Observable<Tuple3<T1,T2,T3>> |
getAs(Class<T1> cls1,
Class<T2> cls2,
Class<T3> cls3)
Automaps the columns of the
ResultSet into the specified
classes. |
<T1,T2,T3,T4> |
getAs(Class<T1> cls1,
Class<T2> cls2,
Class<T3> cls3,
Class<T4> cls4)
Automaps the columns of the
ResultSet into the specified
classes. |
<T1,T2,T3,T4,T5> |
getAs(Class<T1> cls1,
Class<T2> cls2,
Class<T3> cls3,
Class<T4> cls4,
Class<T5> cls5)
Automaps the columns of the
ResultSet into the specified
classes. |
<T1,T2,T3,T4,T5,T6> |
getAs(Class<T1> cls1,
Class<T2> cls2,
Class<T3> cls3,
Class<T4> cls4,
Class<T5> cls5,
Class<T6> cls6)
Automaps the columns of the
ResultSet into the specified
classes. |
<T1,T2,T3,T4,T5,T6,T7> |
getAs(Class<T1> cls1,
Class<T2> cls2,
Class<T3> cls3,
Class<T4> cls4,
Class<T5> cls5,
Class<T6> cls6,
Class<T7> cls7)
Automaps the columns of the
ResultSet into the specified
classes. |
rx.Observable<TupleN<Object>> |
getTupleN()
|
<T> rx.Observable<TupleN<T>> |
getTupleN(Class<T> cls)
Automaps all the columns of the
ResultSet into the target
class cls . |
public QueryUpdate.ReturnGeneratedKeysBuilder(com.github.davidmoten.rx.jdbc.QueryBuilder builder)
public <T> rx.Observable<T> get(ResultSetMapper<? extends T> function)
function
- public <T> rx.Observable<T> autoMap(Class<T> cls)
Transforms each row of the ResultSet
into an instance of
T
using automapping of the ResultSet columns into
corresponding constructor parameters that are assignable. Beyond
normal assignable criteria (for example Integer 123 is assignable to
a Double) other conversions exist to facilitate the automapping:
They are:
cls
- public <T> rx.Observable<T> getAs(Class<T> cls)
cls
.cls
- public <T1,T2> rx.Observable<Tuple2<T1,T2>> getAs(Class<T1> cls1, Class<T2> cls2)
cls1
- cls2
- public <T1,T2,T3> rx.Observable<Tuple3<T1,T2,T3>> getAs(Class<T1> cls1, Class<T2> cls2, Class<T3> cls3)
cls1
- cls2
- cls3
- public <T1,T2,T3,T4> rx.Observable<Tuple4<T1,T2,T3,T4>> getAs(Class<T1> cls1, Class<T2> cls2, Class<T3> cls3, Class<T4> cls4)
cls1
- cls2
- cls3
- cls4
- public <T1,T2,T3,T4,T5> rx.Observable<Tuple5<T1,T2,T3,T4,T5>> getAs(Class<T1> cls1, Class<T2> cls2, Class<T3> cls3, Class<T4> cls4, Class<T5> cls5)
cls1
- cls2
- cls3
- cls4
- cls5
- public <T1,T2,T3,T4,T5,T6> rx.Observable<Tuple6<T1,T2,T3,T4,T5,T6>> getAs(Class<T1> cls1, Class<T2> cls2, Class<T3> cls3, Class<T4> cls4, Class<T5> cls5, Class<T6> cls6)
cls1
- cls2
- cls3
- cls4
- cls5
- cls6
- public <T1,T2,T3,T4,T5,T6,T7> rx.Observable<Tuple7<T1,T2,T3,T4,T5,T6,T7>> getAs(Class<T1> cls1, Class<T2> cls2, Class<T3> cls3, Class<T4> cls4, Class<T5> cls5, Class<T6> cls6, Class<T7> cls7)
cls1
- cls2
- cls3
- cls4
- cls5
- cls6
- cls7
- public rx.Observable<Integer> count()
Copyright © 2014–2015. All rights reserved.