public class SimpleRxSqlExecutor extends java.lang.Object implements RxSqlExecutor
构造器和说明 |
---|
SimpleRxSqlExecutor(io.r2dbc.spi.ConnectionFactory dataSource,
java.lang.String sql,
java.lang.Object[] args) |
限定符和类型 | 方法和说明 |
---|---|
protected org.reactivestreams.Publisher<? extends io.r2dbc.spi.Connection> |
getConnection()
获取连接(为转换提供重写机会)
|
<T> reactor.core.publisher.Mono<T> |
queryRow(java.lang.Class<T> tClass)
查询并获取行
|
<T> reactor.core.publisher.Mono<T> |
queryRow(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)
查询并获取行列表
|
<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()
更新(插入、或更新、或删除)
|
<S> reactor.core.publisher.Mono<java.lang.Long> |
update(S args,
RxStatementBinder<S> binder)
批量更新(插入、或更新、或删除)
|
reactor.core.publisher.Flux<java.lang.Long> |
updateBatch(java.util.Collection<java.lang.Object[]> argsList)
批量更新(插入、或更新、或删除)
|
<T> reactor.core.publisher.Flux<java.lang.Long> |
updateBatch(java.util.Collection<T> argsList,
RxStatementBinder<T> binder)
批量更新(插入、或更新、或删除)
|
<T> reactor.core.publisher.Mono<T> |
updateReturnKey(java.lang.Class<T> tClass)
更新并返回主键
|
<T,S> reactor.core.publisher.Mono<T> |
updateReturnKey(java.lang.Class<T> tClass,
S args,
RxStatementBinder<S> binder)
更新并返回主键
|
public SimpleRxSqlExecutor(io.r2dbc.spi.ConnectionFactory dataSource, java.lang.String sql, java.lang.Object[] args)
public <T> reactor.core.publisher.Mono<T> queryValue(java.lang.Class<T> tClass)
RxSqlExecutor
queryValue
在接口中 RxSqlExecutor
public <T> reactor.core.publisher.Flux<T> queryValueList(java.lang.Class<T> tClass)
RxSqlExecutor
queryValueList
在接口中 RxSqlExecutor
public <T> reactor.core.publisher.Mono<T> queryRow(java.lang.Class<T> tClass)
RxSqlExecutor
queryRow
在接口中 RxSqlExecutor
tClass
- Map.class or T.classpublic <T> reactor.core.publisher.Mono<T> queryRow(RxRowConverter<T> converter)
RxSqlExecutor
queryRow
在接口中 RxSqlExecutor
public <T> reactor.core.publisher.Flux<T> queryRowList(java.lang.Class<T> tClass)
RxSqlExecutor
queryRowList
在接口中 RxSqlExecutor
tClass
- Map.class or T.classpublic <T> reactor.core.publisher.Flux<T> queryRowList(RxRowConverter<T> converter)
RxSqlExecutor
queryRowList
在接口中 RxSqlExecutor
public reactor.core.publisher.Mono<java.lang.Long> update()
RxSqlExecutor
update
在接口中 RxSqlExecutor
public <S> reactor.core.publisher.Mono<java.lang.Long> update(S args, RxStatementBinder<S> binder)
RxSqlExecutor
update
在接口中 RxSqlExecutor
args
- 参数binder
- 绑定器public <T> reactor.core.publisher.Mono<T> updateReturnKey(java.lang.Class<T> tClass)
RxSqlExecutor
updateReturnKey
在接口中 RxSqlExecutor
public <T,S> reactor.core.publisher.Mono<T> updateReturnKey(java.lang.Class<T> tClass, S args, RxStatementBinder<S> binder)
RxSqlExecutor
updateReturnKey
在接口中 RxSqlExecutor
public reactor.core.publisher.Flux<java.lang.Long> updateBatch(java.util.Collection<java.lang.Object[]> argsList)
RxSqlExecutor
updateBatch
在接口中 RxSqlExecutor
argsList
- 参数集合public <T> reactor.core.publisher.Flux<java.lang.Long> updateBatch(java.util.Collection<T> argsList, RxStatementBinder<T> binder)
RxSqlExecutor
updateBatch
在接口中 RxSqlExecutor
argsList
- 参数集合binder
- 绑定器protected org.reactivestreams.Publisher<? extends io.r2dbc.spi.Connection> getConnection()