public class GeneralMybatisParameterHandler
extends org.apache.ibatis.scripting.defaults.DefaultParameterHandler
This Class is used to populate Primary Key for INSERT method for IdType.UUID /IdType.ID_WORKER.
| 构造器和说明 |
|---|
GeneralMybatisParameterHandler(org.apache.ibatis.mapping.MappedStatement mappedStatement,
Object parameterObject,
org.apache.ibatis.mapping.BoundSql boundSql) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected static String |
get32UUID()
获取去掉"-" UUID
|
protected static Collection<Object> |
getParameters(Object parameter)
处理正常批量插入逻辑
org.apache.ibatis.session.defaults.DefaultSqlSession$StrictMap 该类方法
wrapCollection 实现 StrictMap 封装逻辑
|
protected static Object |
populateKeys(com.baomidou.mybatisplus.toolkit.TableInfo tableInfo,
org.apache.ibatis.mapping.MappedStatement ms,
Object parameterObject)
填充主键 ID
|
protected static Object |
processBatchGeneral(org.apache.ibatis.mapping.MappedStatement ms,
Object parameterObject) |
public GeneralMybatisParameterHandler(org.apache.ibatis.mapping.MappedStatement mappedStatement,
Object parameterObject,
org.apache.ibatis.mapping.BoundSql boundSql)
protected static Object processBatchGeneral(org.apache.ibatis.mapping.MappedStatement ms, Object parameterObject)
protected static Collection<Object> getParameters(Object parameter)
处理正常批量插入逻辑
org.apache.ibatis.session.defaults.DefaultSqlSession$StrictMap 该类方法 wrapCollection 实现 StrictMap 封装逻辑
parameter - 插入数据库对象protected static Object populateKeys(com.baomidou.mybatisplus.toolkit.TableInfo tableInfo, org.apache.ibatis.mapping.MappedStatement ms, Object parameterObject)
填充主键 ID
tableInfo - ms - parameterObject - 插入数据库对象protected static String get32UUID()
获取去掉"-" UUID
Copyright © 2017. All rights reserved.