Class R2dbcMapperRegistry


  • public class R2dbcMapperRegistry
    extends org.apache.ibatis.binding.MapperRegistry
    The type R2dbc mapper registry.
    Version:
    1.0.0
    Author:
    Gang Cheng
    • 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 type
        reactiveSqlSession - the reactive sql session
        Returns:
        the mapper
      • hasMapper

        public <T> boolean hasMapper​(Class<T> type)
        Overrides:
        hasMapper in class org.apache.ibatis.binding.MapperRegistry
      • addMapper

        public <T> void addMapper​(Class<T> type)
        Overrides:
        addMapper in class org.apache.ibatis.binding.MapperRegistry
      • getMappers

        public Collection<Class<?>> getMappers()
        Overrides:
        getMappers in class org.apache.ibatis.binding.MapperRegistry