public class SimpleRxSqlQuerier extends java.lang.Object implements RxSqlQuerier
构造器和说明 |
---|
SimpleRxSqlQuerier(io.r2dbc.spi.ConnectionFactory dataSource,
java.lang.String sql) |
限定符和类型 | 方法和说明 |
---|---|
protected org.reactivestreams.Publisher<? extends io.r2dbc.spi.Result> |
buildStatement(io.r2dbc.spi.Connection conn,
RxSqlCommand command,
boolean returnKeys) |
protected org.reactivestreams.Publisher<? extends io.r2dbc.spi.Connection> |
getConnection()
获取连接(为转换提供重写机会)
|
RxSqlQuerier |
params(java.util.Collection<java.lang.Object[]> argsList)
绑定参数(用于批处理)
|
<S> RxSqlQuerier |
params(java.util.Collection<S> argsList,
java.util.function.Supplier<RxStatementBinder<S>> binderSupplier)
绑定参数(用于批处理)
|
RxSqlQuerier |
params(java.lang.Object... args)
绑定参数
|
<S> RxSqlQuerier |
params(S args,
RxStatementBinder<S> binder)
绑定参数
|
<T> reactor.core.publisher.Mono<T> |
queryRow(java.lang.Class<T> tClass)
查询并获取行
|
<T> reactor.core.publisher.Mono<T> |
queryRow(RxRowConverter<T> converter)
查询并获取行
|
protected <T> reactor.core.publisher.Mono<T> |
queryRowDo(RxRowConverter<T> converter) |
<T> reactor.core.publisher.Flux<T> |
queryRowList(java.lang.Class<T> tClass)
查询并获取行列表
|
<T> reactor.core.publisher.Flux<T> |
queryRowList(RxRowConverter<T> converter)
查询并获取行列表
|
protected <T> reactor.core.publisher.Flux<T> |
queryRowListDo(RxRowConverter<T> converter) |
<T> reactor.core.publisher.Mono<T> |
queryValue(java.lang.Class<T> tClass)
查询并获取值
|
<T> reactor.core.publisher.Flux<T> |
queryValueList(java.lang.Class<T> tClass)
查询并获取值列表
|
reactor.core.publisher.Mono<java.lang.Long> |
update()
更新(插入、或更新、或删除)
|
reactor.core.publisher.Flux<java.lang.Long> |
updateBatch()
批量更新(插入、或更新、或删除)
|
protected reactor.core.publisher.Flux<java.lang.Long> |
updateBatchDo() |
protected reactor.core.publisher.Mono<java.lang.Long> |
updateDo() |
<T> reactor.core.publisher.Mono<T> |
updateReturnKey(java.lang.Class<T> tClass)
更新并返回主键
|
protected reactor.core.publisher.Mono |
updateReturnKeyDo() |
public SimpleRxSqlQuerier(io.r2dbc.spi.ConnectionFactory dataSource, java.lang.String sql)
public RxSqlQuerier params(java.lang.Object... args)
RxSqlQuerier
params
在接口中 RxSqlQuerier
public <S> RxSqlQuerier params(S args, RxStatementBinder<S> binder)
RxSqlQuerier
params
在接口中 RxSqlQuerier
public RxSqlQuerier params(java.util.Collection<java.lang.Object[]> argsList)
RxSqlQuerier
params
在接口中 RxSqlQuerier
public <S> RxSqlQuerier params(java.util.Collection<S> argsList, java.util.function.Supplier<RxStatementBinder<S>> binderSupplier)
RxSqlQuerier
params
在接口中 RxSqlQuerier
public <T> reactor.core.publisher.Mono<T> queryValue(java.lang.Class<T> tClass)
RxSqlQuerier
queryValue
在接口中 RxSqlQuerier
public <T> reactor.core.publisher.Flux<T> queryValueList(java.lang.Class<T> tClass)
RxSqlQuerier
queryValueList
在接口中 RxSqlQuerier
public <T> reactor.core.publisher.Mono<T> queryRow(java.lang.Class<T> tClass)
RxSqlQuerier
queryRow
在接口中 RxSqlQuerier
tClass
- Map.class or T.classpublic <T> reactor.core.publisher.Mono<T> queryRow(RxRowConverter<T> converter)
RxSqlQuerier
queryRow
在接口中 RxSqlQuerier
protected <T> reactor.core.publisher.Mono<T> queryRowDo(RxRowConverter<T> converter)
public <T> reactor.core.publisher.Flux<T> queryRowList(java.lang.Class<T> tClass)
RxSqlQuerier
queryRowList
在接口中 RxSqlQuerier
tClass
- Map.class or T.classpublic <T> reactor.core.publisher.Flux<T> queryRowList(RxRowConverter<T> converter)
RxSqlQuerier
queryRowList
在接口中 RxSqlQuerier
protected <T> reactor.core.publisher.Flux<T> queryRowListDo(RxRowConverter<T> converter)
public reactor.core.publisher.Mono<java.lang.Long> update()
RxSqlQuerier
update
在接口中 RxSqlQuerier
protected reactor.core.publisher.Mono<java.lang.Long> updateDo()
public <T> reactor.core.publisher.Mono<T> updateReturnKey(java.lang.Class<T> tClass)
RxSqlQuerier
updateReturnKey
在接口中 RxSqlQuerier
protected reactor.core.publisher.Mono updateReturnKeyDo()
public reactor.core.publisher.Flux<java.lang.Long> updateBatch()
RxSqlQuerier
updateBatch
在接口中 RxSqlQuerier
protected reactor.core.publisher.Flux<java.lang.Long> updateBatchDo()
protected org.reactivestreams.Publisher<? extends io.r2dbc.spi.Result> buildStatement(io.r2dbc.spi.Connection conn, RxSqlCommand command, boolean returnKeys)
protected org.reactivestreams.Publisher<? extends io.r2dbc.spi.Connection> getConnection()