类 MapperManager


  • public class MapperManager
    extends java.lang.Object
    DataSource Plugin Mapper Management.
    作者:
    hyx
    • 构造器概要

      构造器 
      限定符 构造器 说明
      private MapperManager()  
    • 方法概要

      所有方法 静态方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      <R extends Mapper>
      R
      findMapper​(java.lang.String dataSource, java.lang.String tableName)
      Get the mapper by table name.
      static MapperManager instance​(boolean isDataSourceLogEnable)
      Get the instance of MapperManager.
      static void join​(Mapper mapper)
      To join mapper in MAPPER_SPI_MAP.
      void loadInitial()
      The init method.
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 字段详细资料

      • LOGGER

        private static final org.slf4j.Logger LOGGER
      • MAPPER_SPI_MAP

        public static final java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​Mapper>> MAPPER_SPI_MAP
      • dataSourceLogEnable

        private boolean dataSourceLogEnable
    • 构造器详细资料

      • MapperManager

        private MapperManager()
    • 方法详细资料

      • instance

        public static MapperManager instance​(boolean isDataSourceLogEnable)
        Get the instance of MapperManager.
        返回:
        The instance of MapperManager.
      • loadInitial

        public void loadInitial()
        The init method.
      • join

        public static void join​(Mapper mapper)
        To join mapper in MAPPER_SPI_MAP.
        参数:
        mapper - The mapper you want join.
      • findMapper

        public <R extends Mapper> R findMapper​(java.lang.String dataSource,
                                               java.lang.String tableName)
        Get the mapper by table name.
        参数:
        tableName - table name.
        dataSource - the datasource.
        返回:
        mapper.