Class R2dbcMapperFactoryBean<T>

  • Type Parameters:
    T - the type parameter
    All Implemented Interfaces:
    org.springframework.beans.factory.FactoryBean<T>, org.springframework.beans.factory.InitializingBean

    public class R2dbcMapperFactoryBean<T>
    extends Object
    implements org.springframework.beans.factory.FactoryBean<T>, org.springframework.beans.factory.InitializingBean
    R2dbcMapperFactoryBean
    Version:
    1.0.0
    Author:
    Gang Cheng
    • Constructor Detail

      • R2dbcMapperFactoryBean

        public R2dbcMapperFactoryBean()
        Instantiates a new r2dbc mapper factory bean.
      • R2dbcMapperFactoryBean

        public R2dbcMapperFactoryBean​(Class<T> clazz)
        Instantiates a new r2dbc mapper factory bean.
        Parameters:
        clazz - the clazz
    • Method Detail

      • getObject

        public T getObject()
                    throws Exception
        Specified by:
        getObject in interface org.springframework.beans.factory.FactoryBean<T>
        Throws:
        Exception
      • getObjectType

        public Class<?> getObjectType()
        Specified by:
        getObjectType in interface org.springframework.beans.factory.FactoryBean<T>
      • isSingleton

        public boolean isSingleton()
        Specified by:
        isSingleton in interface org.springframework.beans.factory.FactoryBean<T>
      • setMapperInterface

        public void setMapperInterface​(Class<T> mapperInterface)
        Sets mapper interface.
        Parameters:
        mapperInterface - the mapper interface
      • setSqlSessionFactory

        public void setSqlSessionFactory​(pro.chenggang.project.reactive.mybatis.support.r2dbc.ReactiveSqlSessionFactory reactiveSqlSessionFactory)
        Sets sql session factory.
        Parameters:
        reactiveSqlSessionFactory - the reactive sql session factory
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        Exception