All Downloads are FREE. Search and download functionalities are using the official Maven repository.

yui.comn.mybatisx.core.MybatisLinkConfiguration Maven / Gradle / Ivy

The newest version!
/**
 * Project: yui3-common-mybatisx-core
 * Class MybatisxConfiguration
 * Version 1.0
 * File Created at 2020-12-7
 * $Id$
 * author yuyi
 * email [email protected]
 */
package yui.comn.mybatisx.core;

import com.baomidou.mybatisplus.core.MybatisConfiguration;

/**
 * 

* replace default MybatisConfiguration class *

* * @author yuyi ([email protected]) */ public class MybatisLinkConfiguration extends MybatisConfiguration { protected final InjectorMapperRegistry injectorMapperRegistry = new InjectorMapperRegistry(this); public MybatisLinkConfiguration() { super(); } @Override public void addMapper(Class type) { super.addMapper(type); injectorMapperRegistry.addMapper(type); } /*@Override public Executor newExecutor(Transaction transaction, ExecutorType executorType) { executorType = executorType == null ? defaultExecutorType : executorType; executorType = executorType == null ? ExecutorType.SIMPLE : executorType; Executor executor; if (ExecutorType.BATCH == executorType) { executor = new MybatisBatchExecutor(this, transaction); } else if (ExecutorType.REUSE == executorType) { executor = new MybatisReuseExecutor(this, transaction); } else { executor = new MybatisSimpleExecutor(this, transaction); } if (cacheEnabled) { executor = new MybatisCachingExecutor(executor); } executor = (Executor) interceptorChain.pluginAll(executor); return executor; }*/ }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy