Class SelectR2dbcKeyGenerator
- java.lang.Object
-
- pro.chenggang.project.reactive.mybatis.support.r2dbc.executor.key.SelectR2dbcKeyGenerator
-
- All Implemented Interfaces:
R2dbcKeyGenerator
public class SelectR2dbcKeyGenerator extends Object implements R2dbcKeyGenerator
The type Default r2dbc key generator.SelectKeyGenerator- Since:
- 1.0.2
- Version:
- 1.0.3
- Author:
- Gang Cheng
-
-
Constructor Summary
Constructors Constructor Description SelectR2dbcKeyGenerator(org.apache.ibatis.executor.keygen.SelectKeyGenerator selectKeyGenerator, R2dbcMybatisConfiguration r2dbcMybatisConfiguration, ReactiveMybatisExecutor reactiveMybatisExecutor)Instantiates a new Select r2dbc key generator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyGeneratorTypekeyGeneratorType()Key generator type key generator type.IntegerprocessGeneratedKeyResult(RowResultWrapper rowResultWrapper, Object parameter)Process generated key result mono.reactor.core.publisher.Mono<Boolean>processSelectKey(KeyGeneratorType keyGeneratorType, org.apache.ibatis.mapping.MappedStatement ms, Object parameter)Process select key mono.
-
-
-
Constructor Detail
-
SelectR2dbcKeyGenerator
public SelectR2dbcKeyGenerator(org.apache.ibatis.executor.keygen.SelectKeyGenerator selectKeyGenerator, R2dbcMybatisConfiguration r2dbcMybatisConfiguration, ReactiveMybatisExecutor reactiveMybatisExecutor)Instantiates a new Select r2dbc key generator.- Parameters:
selectKeyGenerator- the select key generatorr2dbcMybatisConfiguration- the r2dbc mybatis configurationreactiveMybatisExecutor- the reactive mybatis executor
-
-
Method Detail
-
keyGeneratorType
public KeyGeneratorType keyGeneratorType()
Description copied from interface:R2dbcKeyGeneratorKey generator type key generator type.- Specified by:
keyGeneratorTypein interfaceR2dbcKeyGenerator- Returns:
- the key generator type
-
processSelectKey
public reactor.core.publisher.Mono<Boolean> processSelectKey(KeyGeneratorType keyGeneratorType, org.apache.ibatis.mapping.MappedStatement ms, Object parameter)
Description copied from interface:R2dbcKeyGeneratorProcess select key mono.- Specified by:
processSelectKeyin interfaceR2dbcKeyGenerator- Parameters:
keyGeneratorType- the KeyGeneratorTypems- the msparameter- the parameter- Returns:
- the mono
-
processGeneratedKeyResult
public Integer processGeneratedKeyResult(RowResultWrapper rowResultWrapper, Object parameter)
Description copied from interface:R2dbcKeyGeneratorProcess generated key result mono.- Specified by:
processGeneratedKeyResultin interfaceR2dbcKeyGenerator- Parameters:
rowResultWrapper- the row result wrapperparameter- the parameter- Returns:
- the mono
-
-