类 MapperManager

java.lang.Object
com.alibaba.nacos.plugin.datasource.MapperManager

public class MapperManager extends Object
DataSource Plugin Mapper Management.
作者:
hyx
  • 字段详细资料

  • 方法详细资料

    • 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(String dataSource, String tableName)
      Get the mapper by table name.
      参数:
      tableName - table name.
      dataSource - the datasource.
      返回:
      mapper.