Class DefaultReactiveMybatisExecutor
- java.lang.Object
-
- pro.chenggang.project.reactive.mybatis.support.r2dbc.executor.AbstractReactiveMybatisExecutor
-
- pro.chenggang.project.reactive.mybatis.support.r2dbc.executor.DefaultReactiveMybatisExecutor
-
- All Implemented Interfaces:
ReactiveMybatisExecutor
public class DefaultReactiveMybatisExecutor extends AbstractReactiveMybatisExecutor
The type Default reactive mybatis executor.- Since:
- 1.0.0
- Version:
- 1.0.2
- Author:
- Gang Cheng
-
-
Field Summary
Fields Modifier and Type Field Description protected PlaceholderFormatterplaceholderFormatterThe Placeholder formatter.-
Fields inherited from class pro.chenggang.project.reactive.mybatis.support.r2dbc.executor.AbstractReactiveMybatisExecutor
configuration, connectionFactory
-
-
Constructor Summary
Constructors Constructor Description DefaultReactiveMybatisExecutor(R2dbcMybatisConfiguration configuration)Instantiates a new Default reactive mybatis executor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <E> reactor.core.publisher.Flux<E>doQueryWithConnection(io.r2dbc.spi.Connection connection, org.apache.ibatis.mapping.MappedStatement mappedStatement, Object parameter, org.apache.ibatis.session.RowBounds rowBounds)do query with connection actuallyprotected reactor.core.publisher.Mono<Integer>doUpdateWithConnection(io.r2dbc.spi.Connection connection, org.apache.ibatis.mapping.MappedStatement mappedStatement, Object parameter)do update with connection actually-
Methods inherited from class pro.chenggang.project.reactive.mybatis.support.r2dbc.executor.AbstractReactiveMybatisExecutor
close, closeConnection, commit, inConnection, inConnectionMany, query, rollback, update
-
-
-
-
Field Detail
-
placeholderFormatter
protected PlaceholderFormatter placeholderFormatter
The Placeholder formatter.
-
-
Constructor Detail
-
DefaultReactiveMybatisExecutor
public DefaultReactiveMybatisExecutor(R2dbcMybatisConfiguration configuration)
Instantiates a new Default reactive mybatis executor.- Parameters:
configuration- the configuration
-
-
Method Detail
-
doUpdateWithConnection
protected reactor.core.publisher.Mono<Integer> doUpdateWithConnection(io.r2dbc.spi.Connection connection, org.apache.ibatis.mapping.MappedStatement mappedStatement, Object parameter)
Description copied from class:AbstractReactiveMybatisExecutordo update with connection actually- Specified by:
doUpdateWithConnectionin classAbstractReactiveMybatisExecutor- Parameters:
connection- the connectionmappedStatement- the mapped statementparameter- the parameter- Returns:
- mono
-
doQueryWithConnection
protected <E> reactor.core.publisher.Flux<E> doQueryWithConnection(io.r2dbc.spi.Connection connection, org.apache.ibatis.mapping.MappedStatement mappedStatement, Object parameter, org.apache.ibatis.session.RowBounds rowBounds)Description copied from class:AbstractReactiveMybatisExecutordo query with connection actually- Specified by:
doQueryWithConnectionin classAbstractReactiveMybatisExecutor- Type Parameters:
E- the type parameter- Parameters:
connection- the connectionmappedStatement- the mapped statementparameter- the parameterrowBounds- the row bounds- Returns:
- flux
-
-