Class InjectionMetaObjectHandler

java.lang.Object
io.r2mo.spring.mybatisplus.handler.InjectionMetaObjectHandler
All Implemented Interfaces:
com.baomidou.mybatisplus.core.handlers.MetaObjectHandler

public class InjectionMetaObjectHandler extends Object implements com.baomidou.mybatisplus.core.handlers.MetaObjectHandler
MP注入处理器
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    insertFill(org.apache.ibatis.reflection.MetaObject metaObject)
    插入填充方法,用于在插入数据时自动填充实体对象中的创建时间、更新时间、创建人、更新人等信息
    void
    updateFill(org.apache.ibatis.reflection.MetaObject metaObject)
    更新填充方法,用于在更新数据时自动填充实体对象中的更新时间和更新人信息

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.baomidou.mybatisplus.core.handlers.MetaObjectHandler

    fillStrategy, findTableInfo, getFieldValByName, openInsertFill, openInsertFill, openUpdateFill, openUpdateFill, setFieldValByName, strictFill, strictFillStrategy, strictInsertFill, strictInsertFill, strictInsertFill, strictUpdateFill, strictUpdateFill, strictUpdateFill
  • Constructor Details

    • InjectionMetaObjectHandler

      public InjectionMetaObjectHandler()
  • Method Details

    • insertFill

      public void insertFill(org.apache.ibatis.reflection.MetaObject metaObject)
      插入填充方法,用于在插入数据时自动填充实体对象中的创建时间、更新时间、创建人、更新人等信息
      Specified by:
      insertFill in interface com.baomidou.mybatisplus.core.handlers.MetaObjectHandler
      Parameters:
      metaObject - 元对象,用于获取原始对象并进行填充
    • updateFill

      public void updateFill(org.apache.ibatis.reflection.MetaObject metaObject)
      更新填充方法,用于在更新数据时自动填充实体对象中的更新时间和更新人信息
      Specified by:
      updateFill in interface com.baomidou.mybatisplus.core.handlers.MetaObjectHandler
      Parameters:
      metaObject - 元对象,用于获取原始对象并进行填充