public class BatchInsertProvider
extends tk.mybatis.mapper.mapperhelper.MapperTemplate
| Constructor and Description |
|---|
BatchInsertProvider(Class<?> mapperClass,
tk.mybatis.mapper.mapperhelper.MapperHelper mapperHelper) |
| Modifier and Type | Method and Description |
|---|---|
static String |
getIfPresentAndNotNull(String entityName,
tk.mybatis.mapper.entity.EntityColumn column,
String contents,
boolean empty)
判断是否存在_parameter.insertColumns且 !=null的条件结构
|
static String |
insertColumns(Class<?> entityClass,
boolean skipId,
boolean notNull,
boolean notEmpty)
insert table()列
|
static String |
insertIgnoreIntoTable(Class<?> entityClass,
String defaultTableName)
insert into tableName - 动态表名
|
String |
insertListIgnoreConflict(org.apache.ibatis.mapping.MappedStatement ms)
批量插入
|
static String |
insertSelectiveColumns(Class<?> entityClass)
插入支持按指定列插入
|
String |
insertSelectiveListIgnoreConflict(org.apache.ibatis.mapping.MappedStatement ms)
批量插入
|
public BatchInsertProvider(Class<?> mapperClass, tk.mybatis.mapper.mapperhelper.MapperHelper mapperHelper)
public String insertListIgnoreConflict(org.apache.ibatis.mapping.MappedStatement ms)
ms - public String insertSelectiveListIgnoreConflict(org.apache.ibatis.mapping.MappedStatement ms)
ms - public static String insertColumns(Class<?> entityClass, boolean skipId, boolean notNull, boolean notEmpty)
entityClass - skipId - 是否从列中忽略id类型notNull - 是否判断!=nullnotEmpty - 是否判断String类型!=''public static String insertSelectiveColumns(Class<?> entityClass)
public static String getIfPresentAndNotNull(String entityName, tk.mybatis.mapper.entity.EntityColumn column, String contents, boolean empty)
entityName - column - contents - empty - Copyright © 2020. All rights reserved.