类 MybatisParameterHandler
java.lang.Object
org.apache.ibatis.scripting.defaults.DefaultParameterHandler
com.baomidou.mybatisplus.core.MybatisParameterHandler
- 所有已实现的接口:
org.apache.ibatis.executor.parameter.ParameterHandler
public class MybatisParameterHandler
extends org.apache.ibatis.scripting.defaults.DefaultParameterHandler
自定义 ParameterHandler 重装构造函数,填充插入方法主键 ID
- 从以下版本开始:
- 3.4.0
- 作者:
- nieqiuqiu 2020/6/5
-
字段概要
字段 -
构造器概要
构造器构造器说明MybatisParameterHandler(org.apache.ibatis.mapping.MappedStatement mappedStatement, Object parameter, org.apache.ibatis.mapping.BoundSql boundSql) -
方法概要
修饰符和类型方法说明protected Collection<Object> getParameters(Object parameterObject) 已过时。3.5.3.2protected voidinsertFill(org.apache.ibatis.reflection.MetaObject metaObject, TableInfo tableInfo) protected voidpopulateKeys(TableInfo tableInfo, org.apache.ibatis.reflection.MetaObject metaObject, Object entity) voidprocessParameter(Object parameter) protected Collection<Object> toCollection(Object value) protected voidupdateFill(org.apache.ibatis.reflection.MetaObject metaObject, TableInfo tableInfo) 从类继承的方法 org.apache.ibatis.scripting.defaults.DefaultParameterHandler
getParameterObject, setParameters
-
字段详细资料
-
COLLECTION_KEYS
已过时。3.5.4填充的key值- 从以下版本开始:
- 3.5.3.2
-
-
构造器详细资料
-
MybatisParameterHandler
public MybatisParameterHandler(org.apache.ibatis.mapping.MappedStatement mappedStatement, Object parameter, org.apache.ibatis.mapping.BoundSql boundSql)
-
-
方法详细资料
-
processParameter
-
populateKeys
-
insertFill
-
updateFill
-
getParameters
已过时。3.5.3.2处理正常批量插入逻辑org.apache.ibatis.session.defaults.DefaultSqlSession$StrictMap 该类方法 wrapCollection 实现 StrictMap 封装逻辑
- 返回:
- 集合参数
-
toCollection
-