public class MybatisAdapterPlus extends MybatisAdapterDefault
1.提供 mapperScan 能力 2.生成 factory 的能力
config, dsProps, dsWrap, factory, factoryBuilder, mappers, mapperVerifyEnabled| 限定符 | 构造器和说明 |
|---|---|
protected |
MybatisAdapterPlus(org.noear.solon.core.BeanWrap dsWrap)
构建Sql工厂适配器,使用默认的 typeAliases 和 mappers 配置
|
protected |
MybatisAdapterPlus(org.noear.solon.core.BeanWrap dsWrap,
org.noear.solon.core.Props dsProps)
构建Sql工厂适配器,使用属性配置
|
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.ibatis.session.SqlSessionFactory |
getFactory()
获取会话工厂
|
com.baomidou.mybatisplus.core.config.GlobalConfig |
getGlobalConfig()
获取全局配置
|
protected void |
initConfiguration(org.apache.ibatis.mapping.Environment environment)
初始化配置
|
void |
injectTo(org.noear.solon.core.VarHolder varH) |
addMapperByXml, getConfiguration, getDataSource, getMapper, getMappers, initDo, isMapperclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitopenSessionprotected MybatisAdapterPlus(org.noear.solon.core.BeanWrap dsWrap)
protected MybatisAdapterPlus(org.noear.solon.core.BeanWrap dsWrap,
org.noear.solon.core.Props dsProps)
protected void initConfiguration(org.apache.ibatis.mapping.Environment environment)
public org.apache.ibatis.session.SqlSessionFactory getFactory()
getFactory 在接口中 MybatisAdaptergetFactory 在类中 MybatisAdapterDefaultpublic com.baomidou.mybatisplus.core.config.GlobalConfig getGlobalConfig()
public void injectTo(org.noear.solon.core.VarHolder varH)
injectTo 在接口中 MybatisAdapterinjectTo 在类中 MybatisAdapterDefaultCopyright © 2023. All rights reserved.