本文整理汇总了Java中tk.mybatis.mapper.mapperhelper.MapperHelper类的典型用法代码示例。如果您正苦于以下问题:Java MapperHelper类的具体用法?Java MapperHelper怎么用?Java MapperHelper使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MapperHelper类属于tk.mybatis.mapper.mapperhelper包,在下文中一共展示了MapperHelper类的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: setMapperProperties
import tk.mybatis.mapper.mapperhelper.MapperHelper; //导入依赖的package包/类
/**
* 使用属性方式配置
*
* @param properties
*/
public void setMapperProperties(Properties properties) {
if (this.mapperHelper == null) {
this.mapperHelper = new MapperHelper();
}
this.mapperHelper.setProperties(properties);
}
开发者ID:abel533,项目名称:Mapper,代码行数:12,代码来源:Configuration.java
示例2: addMappedStatement
import tk.mybatis.mapper.mapperhelper.MapperHelper; //导入依赖的package包/类
@Override
public void addMappedStatement(MappedStatement ms) {
try {
super.addMappedStatement(ms);
//没有任何配置时,使用默认配置
if (this.mapperHelper == null) {
this.mapperHelper = new MapperHelper();
}
this.mapperHelper.processMappedStatement(ms);
} catch (IllegalArgumentException e) {
//这里的异常是导致 Spring 启动死循环的关键位置,为了避免后续会吞异常,这里直接输出
e.printStackTrace();
throw new RuntimeException(e);
}
}
开发者ID:abel533,项目名称:Mapper,代码行数:16,代码来源:Configuration.java
示例3: setMapperHelper
import tk.mybatis.mapper.mapperhelper.MapperHelper; //导入依赖的package包/类
public void setMapperHelper(MapperHelper mapperHelper) {
this.mapperHelper = mapperHelper;
}
开发者ID:Yanweichen,项目名称:MybatisGeneatorUtil,代码行数:4,代码来源:MapperFactoryBean.java
示例4: getMapperHelper
import tk.mybatis.mapper.mapperhelper.MapperHelper; //导入依赖的package包/类
public MapperHelper getMapperHelper() {
return mapperHelper;
}
开发者ID:Yanweichen,项目名称:MybatisGeneatorUtil,代码行数:4,代码来源:MapperScannerConfigurer.java
示例5: BaseUpdateProvider
import tk.mybatis.mapper.mapperhelper.MapperHelper; //导入依赖的package包/类
public BaseUpdateProvider(Class<?> mapperClass, MapperHelper mapperHelper) {
super(mapperClass, mapperHelper);
}
开发者ID:Yanweichen,项目名称:MybatisGeneatorUtil,代码行数:4,代码来源:BaseUpdateProvider.java
示例6: BaseSelectProvider
import tk.mybatis.mapper.mapperhelper.MapperHelper; //导入依赖的package包/类
public BaseSelectProvider(Class<?> mapperClass, MapperHelper mapperHelper) {
super(mapperClass, mapperHelper);
}
开发者ID:Yanweichen,项目名称:MybatisGeneatorUtil,代码行数:4,代码来源:BaseSelectProvider.java
示例7: BaseInsertProvider
import tk.mybatis.mapper.mapperhelper.MapperHelper; //导入依赖的package包/类
public BaseInsertProvider(Class<?> mapperClass, MapperHelper mapperHelper) {
super(mapperClass, mapperHelper);
}
开发者ID:Yanweichen,项目名称:MybatisGeneatorUtil,代码行数:4,代码来源:BaseInsertProvider.java
示例8: BaseDeleteProvider
import tk.mybatis.mapper.mapperhelper.MapperHelper; //导入依赖的package包/类
public BaseDeleteProvider(Class<?> mapperClass, MapperHelper mapperHelper) {
super(mapperClass, mapperHelper);
}
开发者ID:Yanweichen,项目名称:MybatisGeneatorUtil,代码行数:4,代码来源:BaseDeleteProvider.java
示例9: SqlServerProvider
import tk.mybatis.mapper.mapperhelper.MapperHelper; //导入依赖的package包/类
public SqlServerProvider(Class<?> mapperClass, MapperHelper mapperHelper) {
super(mapperClass, mapperHelper);
}
开发者ID:Yanweichen,项目名称:MybatisGeneatorUtil,代码行数:4,代码来源:SqlServerProvider.java
示例10: SpecialProvider
import tk.mybatis.mapper.mapperhelper.MapperHelper; //导入依赖的package包/类
public SpecialProvider(Class<?> mapperClass, MapperHelper mapperHelper) {
super(mapperClass, mapperHelper);
}
开发者ID:Yanweichen,项目名称:MybatisGeneatorUtil,代码行数:4,代码来源:SpecialProvider.java
示例11: IdsProvider
import tk.mybatis.mapper.mapperhelper.MapperHelper; //导入依赖的package包/类
public IdsProvider(Class<?> mapperClass, MapperHelper mapperHelper) {
super(mapperClass, mapperHelper);
}
开发者ID:Yanweichen,项目名称:MybatisGeneatorUtil,代码行数:4,代码来源:IdsProvider.java
示例12: EmptyProvider
import tk.mybatis.mapper.mapperhelper.MapperHelper; //导入依赖的package包/类
public EmptyProvider(Class<?> mapperClass, MapperHelper mapperHelper) {
super(mapperClass, mapperHelper);
}
开发者ID:Yanweichen,项目名称:MybatisGeneatorUtil,代码行数:4,代码来源:EmptyProvider.java
示例13: ConditionProvider
import tk.mybatis.mapper.mapperhelper.MapperHelper; //导入依赖的package包/类
public ConditionProvider(Class<?> mapperClass, MapperHelper mapperHelper) {
super(mapperClass, mapperHelper);
exampleProvider = new ExampleProvider(mapperClass, mapperHelper);
}
开发者ID:Yanweichen,项目名称:MybatisGeneatorUtil,代码行数:5,代码来源:ConditionProvider.java
示例14: ExampleProvider
import tk.mybatis.mapper.mapperhelper.MapperHelper; //导入依赖的package包/类
public ExampleProvider(Class<?> mapperClass, MapperHelper mapperHelper) {
super(mapperClass, mapperHelper);
}
开发者ID:Yanweichen,项目名称:MybatisGeneatorUtil,代码行数:4,代码来源:ExampleProvider.java
示例15: HsqldbProvider
import tk.mybatis.mapper.mapperhelper.MapperHelper; //导入依赖的package包/类
public HsqldbProvider(Class<?> mapperClass, MapperHelper mapperHelper) {
super(mapperClass, mapperHelper);
}
开发者ID:Yanweichen,项目名称:MybatisGeneatorUtil,代码行数:4,代码来源:HsqldbProvider.java
示例16: DynamicQueryProvider
import tk.mybatis.mapper.mapperhelper.MapperHelper; //导入依赖的package包/类
public DynamicQueryProvider(Class<?> mapperClass, MapperHelper mapperHelper) {
super(mapperClass, mapperHelper);
}
开发者ID:wz2cool,项目名称:mybatis-dynamic-query,代码行数:4,代码来源:DynamicQueryProvider.java
示例17: CommonSelectMapperProvider
import tk.mybatis.mapper.mapperhelper.MapperHelper; //导入依赖的package包/类
public CommonSelectMapperProvider(Class<?> mapperClass, MapperHelper mapperHelper) {
super(mapperClass, mapperHelper);
}
开发者ID:mazhaoyong,项目名称:api-server-seed,代码行数:4,代码来源:CommonSelectMapperProvider.java
示例18: BatchLogicDeleteMapperProvider
import tk.mybatis.mapper.mapperhelper.MapperHelper; //导入依赖的package包/类
public BatchLogicDeleteMapperProvider(Class<?> mapperClass, MapperHelper mapperHelper) {
super(mapperClass, mapperHelper);
}
开发者ID:mazhaoyong,项目名称:api-server-seed,代码行数:4,代码来源:BatchLogicDeleteMapperProvider.java
示例19: afterPropertiesSet
import tk.mybatis.mapper.mapperhelper.MapperHelper; //导入依赖的package包/类
@Override
public void afterPropertiesSet() throws Exception {
//
String interceptorHandlers = null;
if (properties.isCacheEnabled()) {
interceptorHandlers = "cache";
}
if (properties.isRwRouteEnabled()) {
interceptorHandlers = interceptorHandlers == null ? "rwRoute" : interceptorHandlers + ",rwRoute";
}
if (properties.isDbShardEnabled()) {
interceptorHandlers = interceptorHandlers == null ? "dbShard" : interceptorHandlers + ",dbShard";
}
if (properties.isPaginationEnabled()) {
interceptorHandlers = interceptorHandlers == null ? "page" : interceptorHandlers + ",page";
}
if (interceptorHandlers != null) {
JeesuiteMybatisInterceptor interceptor = new JeesuiteMybatisInterceptor();
interceptor.setMapperLocations(mapperLocations);
interceptor.setInterceptorHandlers(interceptorHandlers);
sqlSessionFactory.getConfiguration().addInterceptor(interceptor);
Properties p = new Properties();
p.setProperty(PluginConfig.CRUD_DRIVER, properties.getCrudDriver());
p.setProperty(PluginConfig.DB_TYPE, properties.getDbType());
p.setProperty(PluginConfig.CACHE_NULL_VALUE, String.valueOf(properties.isNullValueCache()));
p.setProperty(PluginConfig.CACHE_EXPIRE_SECONDS, String.valueOf(properties.getCacheExpireSeconds()));
p.setProperty(PluginConfig.CACHE_DYNAMIC_EXPIRE, String.valueOf(properties.isDynamicExpire()));
interceptor.setProperties(p);
interceptor.afterPropertiesSet();
}else{
MybatisMapperParser.setMapperLocations(mapperLocations);
}
//
MapperHelper mapperHelper = new MapperHelper();
Config config = new Config();
config.setNotEmpty(false);
mapperHelper.setConfig(config);
List<EntityInfo> entityInfos = MybatisMapperParser.getEntityInfos();
for (EntityInfo entityInfo : entityInfos) {
mapperHelper.registerMapper(entityInfo.getMapperClass());
}
mapperHelper.processConfiguration(sqlSessionFactory.getConfiguration());
}
开发者ID:vakinge,项目名称:jeesuite-libs,代码行数:54,代码来源:JeesuiteMybatisConfiguration.java
注:本文中的tk.mybatis.mapper.mapperhelper.MapperHelper类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论