类 MapperManager
java.lang.Object
com.alibaba.nacos.plugin.datasource.MapperManager
DataSource Plugin Mapper Management.
- 作者:
- hyx
-
字段概要
字段 -
方法概要
修饰符和类型方法说明<R extends Mapper>
RfindMapper(String dataSource, String tableName) Get the mapper by table name.static MapperManagerinstance(boolean isDataSourceLogEnable) Get the instance of MapperManager.static voidTo join mapper in MAPPER_SPI_MAP.voidThe init method.
-
字段详细资料
-
MAPPER_SPI_MAP
-
-
方法详细资料
-
instance
Get the instance of MapperManager.- 返回:
- The instance of MapperManager.
-
loadInitial
public void loadInitial()The init method. -
join
To join mapper in MAPPER_SPI_MAP.- 参数:
mapper- The mapper you want join.
-
findMapper
Get the mapper by table name.- 参数:
tableName- table name.dataSource- the datasource.- 返回:
- mapper.
-