类 AbstractMybatisPlusCondition<Children,E>

java.lang.Object
org.elsfs.tool.sql.mybatisplus.conditions.AbstractMybatisPlusCondition<Children,E>
所有已实现的接口:
org.elsfs.tool.sql.conditions.Condition<Children>, org.elsfs.tool.sql.conditions.interfaces.And<Children>, org.elsfs.tool.sql.conditions.interfaces.ApplySql<Children>, org.elsfs.tool.sql.conditions.interfaces.Between<Children>, org.elsfs.tool.sql.conditions.interfaces.Eq<Children>, org.elsfs.tool.sql.conditions.interfaces.Exists<Children>, org.elsfs.tool.sql.conditions.interfaces.ExpressionSql<Children>, org.elsfs.tool.sql.conditions.interfaces.Ge<Children>, org.elsfs.tool.sql.conditions.interfaces.Gt<Children>, org.elsfs.tool.sql.conditions.interfaces.In<Children>, org.elsfs.tool.sql.conditions.interfaces.IsNotNull<Children>, org.elsfs.tool.sql.conditions.interfaces.IsNull<Children>, org.elsfs.tool.sql.conditions.interfaces.Le<Children>, org.elsfs.tool.sql.conditions.interfaces.Like<Children>, org.elsfs.tool.sql.conditions.interfaces.LikeLeft<Children>, org.elsfs.tool.sql.conditions.interfaces.LikeRight<Children>, org.elsfs.tool.sql.conditions.interfaces.Lt<Children>, org.elsfs.tool.sql.conditions.interfaces.Ne<Children>, org.elsfs.tool.sql.conditions.interfaces.Nested<Children>, org.elsfs.tool.sql.conditions.interfaces.NotBetween<Children>, org.elsfs.tool.sql.conditions.interfaces.NotExists<Children>, org.elsfs.tool.sql.conditions.interfaces.NotIn<Children>, org.elsfs.tool.sql.conditions.interfaces.NotLike<Children>, org.elsfs.tool.sql.conditions.interfaces.Or<Children>, org.elsfs.tool.sql.resolve.ResolveFieldName
直接已知子类:
UpdateMybatisPlusCondition

public abstract class AbstractMybatisPlusCondition<Children,E> extends Object implements org.elsfs.tool.sql.conditions.Condition<Children>
从以下版本开始:
0.0.3
作者:
zeng
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    protected final Children
    子类引用
    protected final com.baomidou.mybatisplus.core.conditions.AbstractWrapper<E,String,?>
    条件包装器
  • 构造器概要

    构造器
    限定符
    构造器
    说明
    protected
    AbstractMybatisPlusCondition(com.baomidou.mybatisplus.core.conditions.AbstractWrapper<E,String,?> wrapper)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    and(boolean condition, Consumer<Children> consumer)
    AND 嵌套
    apply(boolean condition, Consumer<Children> actionConsumer)
    应用action消费器
    between(boolean condition, String field, Object leftValue, Object rightValue)
    范围
    protected String
    转换为数据库字段名称
    eq(boolean condition, String field, Object value)
    等于
    eqSql(boolean condition, String field, String sqlValue)
    字段 = ( sql语句 )
    exists(boolean condition, String sqlValue, Object... values)
     
    expression(boolean condition, String sqlValue, Object... values)
     
    ge(boolean condition, String field, Object value)
     
    geSql(boolean condition, String field, String sqlValue)
     
    protected com.baomidou.mybatisplus.core.conditions.interfaces.Join<?>
    获取JOIN对象
    protected com.baomidou.mybatisplus.core.conditions.interfaces.Nested<com.baomidou.mybatisplus.core.conditions.Wrapper<E>,com.baomidou.mybatisplus.core.conditions.Wrapper<E>>
    获取JOIN对象
    gt(boolean condition, String field, Object value)
     
    gtSql(boolean condition, String field, String sqlValue)
     
    in(boolean condition, String field, Object... values)
     
    in(boolean condition, String field, Collection<?> values)
     
    inSql(boolean condition, String field, String sqlValue)
     
    protected abstract Children
    instance(com.baomidou.mybatisplus.core.conditions.Wrapper<E> wrapper)
    获取操作Action实例
    isNotNull(boolean condition, String field)
     
    isNull(boolean condition, String field)
     
    le(boolean condition, String field, Object value)
     
    leSql(boolean condition, String field, String sqlValue)
     
    like(boolean condition, String field, Object value)
     
    likeLeft(boolean condition, String field, Object value)
     
    likeRight(boolean condition, String field, Object value)
     
    lt(boolean condition, String field, Object value)
     
    ltSql(boolean condition, String field, String sqlValue)
     
    ne(boolean condition, String field, Object value)
     
    nested(boolean condition, Consumer<Children> consumer)
     
    notBetween(boolean condition, String field, Object leftValue, Object rightValue)
     
    notExists(boolean condition, String sqlValue, Object... values)
     
    notIn(boolean condition, String field, Object... values)
     
    notIn(boolean condition, String field, Collection<?> values)
     
    notInSql(boolean condition, String field, String sqlValue)
     
    notLike(boolean condition, String field, Object value)
     
    or()
    拼接 OR
    or(boolean condition)
    拼接 OR
    or(boolean condition, Consumer<Children> consumer)
     

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

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

    从接口继承的方法 org.elsfs.tool.sql.conditions.interfaces.And

    and

    从接口继承的方法 org.elsfs.tool.sql.conditions.interfaces.ApplySql

    apply

    从接口继承的方法 org.elsfs.tool.sql.conditions.interfaces.Between

    between, between, between, between, between

    从接口继承的方法 org.elsfs.tool.sql.conditions.interfaces.Eq

    eq, eq, eq, eq, eq, eqSql, eqSql, eqSql, eqSql, eqSql

    从接口继承的方法 org.elsfs.tool.sql.conditions.interfaces.Exists

    exists

    从接口继承的方法 org.elsfs.tool.sql.conditions.interfaces.ExpressionSql

    expression

    从接口继承的方法 org.elsfs.tool.sql.conditions.interfaces.Ge

    ge, ge, ge, ge, ge, geSql, geSql, geSql, geSql, geSql

    从接口继承的方法 org.elsfs.tool.sql.conditions.interfaces.Gt

    gt, gt, gt, gt, gt, gtSql, gtSql, gtSql, gtSql, gtSql

    从接口继承的方法 org.elsfs.tool.sql.conditions.interfaces.In

    in, in, in, in, inSql, inSql, inSql, inSql, inSql

    从接口继承的方法 org.elsfs.tool.sql.conditions.interfaces.IsNotNull

    isNotNull, isNotNull, isNotNull, isNotNull, isNotNull

    从接口继承的方法 org.elsfs.tool.sql.conditions.interfaces.IsNull

    isNull, isNull, isNull, isNull, isNull

    从接口继承的方法 org.elsfs.tool.sql.conditions.interfaces.Le

    le, le, le, le, le, leSql, leSql, leSql, leSql, leSql

    从接口继承的方法 org.elsfs.tool.sql.conditions.interfaces.Like

    like, like

    从接口继承的方法 org.elsfs.tool.sql.conditions.interfaces.LikeLeft

    likeLeft, likeLeft

    从接口继承的方法 org.elsfs.tool.sql.conditions.interfaces.LikeRight

    likeRight, likeRight

    从接口继承的方法 org.elsfs.tool.sql.conditions.interfaces.Lt

    lt, lt, lt, lt, lt, ltSql, ltSql, ltSql, ltSql, ltSql

    从接口继承的方法 org.elsfs.tool.sql.conditions.interfaces.Ne

    ne, ne, ne, ne, ne

    从接口继承的方法 org.elsfs.tool.sql.conditions.interfaces.Nested

    nested

    从接口继承的方法 org.elsfs.tool.sql.conditions.interfaces.NotBetween

    notBetween, notBetween, notBetween, notBetween, notBetween

    从接口继承的方法 org.elsfs.tool.sql.conditions.interfaces.NotExists

    notExists

    从接口继承的方法 org.elsfs.tool.sql.conditions.interfaces.NotIn

    notIn, notIn, notIn, notIn, notInSql, notInSql, notInSql, notInSql, notInSql

    从接口继承的方法 org.elsfs.tool.sql.conditions.interfaces.NotLike

    notLike, notLike

    从接口继承的方法 org.elsfs.tool.sql.conditions.interfaces.Or

    or

    从接口继承的方法 org.elsfs.tool.sql.resolve.ResolveFieldName

    resolveFieldName, resolveFieldName
  • 字段详细资料

    • childThis

      protected final Children childThis
      子类引用
    • wrapper

      protected final com.baomidou.mybatisplus.core.conditions.AbstractWrapper<E,String,?> wrapper
      条件包装器
  • 构造器详细资料

    • AbstractMybatisPlusCondition

      protected AbstractMybatisPlusCondition(com.baomidou.mybatisplus.core.conditions.AbstractWrapper<E,String,?> wrapper)
  • 方法详细资料

    • instance

      protected abstract Children instance(com.baomidou.mybatisplus.core.conditions.Wrapper<E> wrapper)
      获取操作Action实例
      参数:
      wrapper - 条件Wrapper对象
      返回:
      Action实例
    • getJoin

      protected com.baomidou.mybatisplus.core.conditions.interfaces.Join<?> getJoin()
      获取JOIN对象
      返回:
      JOIN对象
    • getNested

      protected com.baomidou.mybatisplus.core.conditions.interfaces.Nested<com.baomidou.mybatisplus.core.conditions.Wrapper<E>,com.baomidou.mybatisplus.core.conditions.Wrapper<E>> getNested()
      获取JOIN对象
      返回:
      JOIN对象
    • convertToDbFieldName

      protected String convertToDbFieldName(String field)
      转换为数据库字段名称
      参数:
      field - 实体字段名称
      返回:
      数据库字段名称
    • eq

      public Children eq(boolean condition, String field, Object value)
      等于
      指定者:
      eq 在接口中 org.elsfs.tool.sql.conditions.interfaces.Eq<Children>
      参数:
      field - 字段名
      value - 值
      返回:
      具体实现
    • eqSql

      public Children eqSql(boolean condition, String field, String sqlValue)
      字段 = ( sql语句 )

      例1: eqSql("id", "select id from table where name = 'JunJun'")

      指定者:
      eqSql 在接口中 org.elsfs.tool.sql.conditions.interfaces.Eq<Children>
      参数:
      condition - 条件
      field - 字段名
      sqlValue - sql语句
      返回:
      具体实现
    • and

      public Children and(boolean condition, Consumer<Children> consumer)
      AND 嵌套

      例: and(i -> i.eq("name", "李白").ne("status", "活着"))

      指定者:
      and 在接口中 org.elsfs.tool.sql.conditions.interfaces.And<Children>
      参数:
      condition - 执行条件
      consumer - 消费函数
      返回:
      children
    • apply

      public Children apply(boolean condition, Consumer<Children> actionConsumer)
      应用action消费器
      指定者:
      apply 在接口中 org.elsfs.tool.sql.conditions.interfaces.ApplySql<Children>
      参数:
      condition - 条件
      actionConsumer - action消费器
      返回:
      具体实现
    • between

      public Children between(boolean condition, String field, Object leftValue, Object rightValue)
      范围
      指定者:
      between 在接口中 org.elsfs.tool.sql.conditions.interfaces.Between<Children>
      参数:
      condition - 是否应用条件
      field - 字段名
      leftValue - 左值
      rightValue - 右值
      返回:
      具体实现
    • exists

      public Children exists(boolean condition, String sqlValue, Object... values)
      指定者:
      exists 在接口中 org.elsfs.tool.sql.conditions.interfaces.Exists<Children>
    • expression

      public Children expression(boolean condition, String sqlValue, Object... values)
      指定者:
      expression 在接口中 org.elsfs.tool.sql.conditions.interfaces.ExpressionSql<Children>
    • ge

      public Children ge(boolean condition, String field, Object value)
      指定者:
      ge 在接口中 org.elsfs.tool.sql.conditions.interfaces.Ge<Children>
    • geSql

      public Children geSql(boolean condition, String field, String sqlValue)
      指定者:
      geSql 在接口中 org.elsfs.tool.sql.conditions.interfaces.Ge<Children>
    • gt

      public Children gt(boolean condition, String field, Object value)
      指定者:
      gt 在接口中 org.elsfs.tool.sql.conditions.interfaces.Gt<Children>
    • in

      public Children in(boolean condition, String field, Collection<?> values)
      指定者:
      in 在接口中 org.elsfs.tool.sql.conditions.interfaces.In<Children>
    • in

      public Children in(boolean condition, String field, Object... values)
      指定者:
      in 在接口中 org.elsfs.tool.sql.conditions.interfaces.In<Children>
    • isNotNull

      public Children isNotNull(boolean condition, String field)
      指定者:
      isNotNull 在接口中 org.elsfs.tool.sql.conditions.interfaces.IsNotNull<Children>
    • inSql

      public Children inSql(boolean condition, String field, String sqlValue)
      指定者:
      inSql 在接口中 org.elsfs.tool.sql.conditions.interfaces.In<Children>
    • gtSql

      public Children gtSql(boolean condition, String field, String sqlValue)
      指定者:
      gtSql 在接口中 org.elsfs.tool.sql.conditions.interfaces.Gt<Children>
    • le

      public Children le(boolean condition, String field, Object value)
      指定者:
      le 在接口中 org.elsfs.tool.sql.conditions.interfaces.Le<Children>
    • leSql

      public Children leSql(boolean condition, String field, String sqlValue)
      指定者:
      leSql 在接口中 org.elsfs.tool.sql.conditions.interfaces.Le<Children>
    • like

      public Children like(boolean condition, String field, Object value)
      指定者:
      like 在接口中 org.elsfs.tool.sql.conditions.interfaces.Like<Children>
    • likeLeft

      public Children likeLeft(boolean condition, String field, Object value)
      指定者:
      likeLeft 在接口中 org.elsfs.tool.sql.conditions.interfaces.LikeLeft<Children>
    • likeRight

      public Children likeRight(boolean condition, String field, Object value)
      指定者:
      likeRight 在接口中 org.elsfs.tool.sql.conditions.interfaces.LikeRight<Children>
    • lt

      public Children lt(boolean condition, String field, Object value)
      指定者:
      lt 在接口中 org.elsfs.tool.sql.conditions.interfaces.Lt<Children>
    • ltSql

      public Children ltSql(boolean condition, String field, String sqlValue)
      指定者:
      ltSql 在接口中 org.elsfs.tool.sql.conditions.interfaces.Lt<Children>
    • ne

      public Children ne(boolean condition, String field, Object value)
      指定者:
      ne 在接口中 org.elsfs.tool.sql.conditions.interfaces.Ne<Children>
    • nested

      public Children nested(boolean condition, Consumer<Children> consumer)
      指定者:
      nested 在接口中 org.elsfs.tool.sql.conditions.interfaces.Nested<Children>
    • notBetween

      public Children notBetween(boolean condition, String field, Object leftValue, Object rightValue)
      指定者:
      notBetween 在接口中 org.elsfs.tool.sql.conditions.interfaces.NotBetween<Children>
    • isNull

      public Children isNull(boolean condition, String field)
      指定者:
      isNull 在接口中 org.elsfs.tool.sql.conditions.interfaces.IsNull<Children>
    • notExists

      public Children notExists(boolean condition, String sqlValue, Object... values)
      指定者:
      notExists 在接口中 org.elsfs.tool.sql.conditions.interfaces.NotExists<Children>
    • notIn

      public Children notIn(boolean condition, String field, Collection<?> values)
      指定者:
      notIn 在接口中 org.elsfs.tool.sql.conditions.interfaces.NotIn<Children>
    • notIn

      public Children notIn(boolean condition, String field, Object... values)
      指定者:
      notIn 在接口中 org.elsfs.tool.sql.conditions.interfaces.NotIn<Children>
    • notInSql

      public Children notInSql(boolean condition, String field, String sqlValue)
      指定者:
      notInSql 在接口中 org.elsfs.tool.sql.conditions.interfaces.NotIn<Children>
    • notLike

      public Children notLike(boolean condition, String field, Object value)
      指定者:
      notLike 在接口中 org.elsfs.tool.sql.conditions.interfaces.NotLike<Children>
    • or

      public Children or(boolean condition)
      拼接 OR
      指定者:
      or 在接口中 org.elsfs.tool.sql.conditions.interfaces.Or<Children>
      参数:
      condition - 执行条件
      返回:
      children
    • or

      public Children or()
      拼接 OR
      指定者:
      or 在接口中 org.elsfs.tool.sql.conditions.interfaces.Or<Children>
      返回:
      children
    • or

      public Children or(boolean condition, Consumer<Children> consumer)
      指定者:
      or 在接口中 org.elsfs.tool.sql.conditions.interfaces.Or<Children>