类 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
  • 字段详细资料

    • COLLECTION_KEYS

      @Deprecated public static final String[] 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

      public void processParameter(Object parameter)
    • populateKeys

      protected void populateKeys(TableInfo tableInfo, org.apache.ibatis.reflection.MetaObject metaObject, Object entity)
    • insertFill

      protected void insertFill(org.apache.ibatis.reflection.MetaObject metaObject, TableInfo tableInfo)
    • updateFill

      protected void updateFill(org.apache.ibatis.reflection.MetaObject metaObject, TableInfo tableInfo)
    • getParameters

      @Deprecated protected Collection<Object> getParameters(Object parameterObject)
      已过时。
      3.5.3.2
      处理正常批量插入逻辑

      org.apache.ibatis.session.defaults.DefaultSqlSession$StrictMap 该类方法 wrapCollection 实现 StrictMap 封装逻辑

      返回:
      集合参数
    • toCollection

      protected Collection<Object> toCollection(Object value)