类 ExistParam<T>

java.lang.Object
net.sohelp.boot.demo.core.base.ExistParam<T>
所有已实现的接口:
Serializable

public class ExistParam<T> extends Object implements Serializable
检查是否存在通用参数
从以下版本开始:
2023-08-11 22:24:39
作者:
AaronFung
另请参阅:
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    boolean
    exist(com.baomidou.mybatisplus.extension.service.IService<T> service, com.baomidou.mybatisplus.core.toolkit.support.SFunction<T,?> idField)
    检查是否存在
    boolean
    exist(com.baomidou.mybatisplus.extension.service.IService<T> service, com.baomidou.mybatisplus.core.toolkit.support.SFunction<T,?> idField, boolean isToUnderlineCase)
    检查是否存在
    boolean
    exist(com.baomidou.mybatisplus.extension.service.IService<T> service, String idField)
    检查是否存在
    boolean
    exist(com.baomidou.mybatisplus.extension.service.IService<T> service, String idField, boolean isToUnderlineCase)
    检查是否存在

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • ExistParam

      public ExistParam()
  • 方法详细资料

    • exist

      public boolean exist(com.baomidou.mybatisplus.extension.service.IService<T> service, String idField)
      检查是否存在
      参数:
      service - IService
      idField - 修改时的主键字段
      返回:
      boolean
    • exist

      public boolean exist(com.baomidou.mybatisplus.extension.service.IService<T> service, String idField, boolean isToUnderlineCase)
      检查是否存在
      参数:
      service - IService
      idField - 修改时的主键字段
      isToUnderlineCase - 是否需要把field转为下划线格式
      返回:
      boolean
    • exist

      public boolean exist(com.baomidou.mybatisplus.extension.service.IService<T> service, com.baomidou.mybatisplus.core.toolkit.support.SFunction<T,?> idField)
      检查是否存在
      参数:
      service - IService
      idField - 修改时的主键字段
      返回:
      boolean
    • exist

      public boolean exist(com.baomidou.mybatisplus.extension.service.IService<T> service, com.baomidou.mybatisplus.core.toolkit.support.SFunction<T,?> idField, boolean isToUnderlineCase)
      检查是否存在
      参数:
      service - IService
      idField - 修改时的主键字段
      isToUnderlineCase - 是否需要把field转为下划线格式
      返回:
      boolean