Class R2dbcMapperRegistry
- java.lang.Object
-
- org.apache.ibatis.binding.MapperRegistry
-
- pro.chenggang.project.reactive.mybatis.support.r2dbc.delegate.R2dbcMapperRegistry
-
public class R2dbcMapperRegistry extends org.apache.ibatis.binding.MapperRegistryThe type R2dbc mapper registry.- Version:
- 1.0.0
- Author:
- Gang Cheng
-
-
Constructor Summary
Constructors Constructor Description R2dbcMapperRegistry(R2dbcMybatisConfiguration r2dbcMybatisConfiguration)Instantiates a new R2dbc mapper registry.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> voidaddMapper(Class<T> type)<T> TgetMapper(Class<T> type, ReactiveSqlSession reactiveSqlSession)Gets mapper.Collection<Class<?>>getMappers()<T> booleanhasMapper(Class<T> type)
-
-
-
Constructor Detail
-
R2dbcMapperRegistry
public R2dbcMapperRegistry(R2dbcMybatisConfiguration r2dbcMybatisConfiguration)
Instantiates a new R2dbc mapper registry.- Parameters:
r2dbcMybatisConfiguration- the r2dbcMybatisConfiguration
-
-
Method Detail
-
getMapper
public <T> T getMapper(Class<T> type, ReactiveSqlSession reactiveSqlSession)
Gets mapper.- Type Parameters:
T- the type parameter- Parameters:
type- the typereactiveSqlSession- the reactive sql session- Returns:
- the mapper
-
hasMapper
public <T> boolean hasMapper(Class<T> type)
- Overrides:
hasMapperin classorg.apache.ibatis.binding.MapperRegistry
-
addMapper
public <T> void addMapper(Class<T> type)
- Overrides:
addMapperin classorg.apache.ibatis.binding.MapperRegistry
-
getMappers
public Collection<Class<?>> getMappers()
- Overrides:
getMappersin classorg.apache.ibatis.binding.MapperRegistry
-
-