类 MapperManager
java.lang.Object
com.alibaba.nacos.plugin.datasource.MapperManager
DataSource Plugin Mapper Management.
- 作者:
- hyx
-
字段概要
字段修饰符和类型字段说明private booleanprivate static final MapperManagerprivate static final org.slf4j.Logger -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明<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.private static void
-
字段详细资料
-
LOGGER
private static final org.slf4j.Logger LOGGER -
MAPPER_SPI_MAP
-
INSTANCE
-
dataSourceLogEnable
private boolean dataSourceLogEnable
-
-
构造器详细资料
-
MapperManager
private MapperManager()
-
-
方法详细资料
-
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.
-
putMapper
-
findMapper
Get the mapper by table name.- 参数:
dataSource- the datasource.tableName- table name.- 返回:
- mapper.
-