类 MybatisPlusUpdateAction<E>

java.lang.Object
org.elsfs.tool.sql.mybatisplus.AbstractConditionOperations<C>
org.elsfs.tool.sql.mybatisplus.mybatis.AbstractMybatisPlusConditionOperations<org.elsfs.tool.sql.singular.facade.UpdateAction<Long>,E>
org.elsfs.tool.sql.mybatisplus.mybatis.MybatisPlusUpdateAction<E>
类型参数:
E - 实体类型
所有已实现的接口:
org.elsfs.tool.sql.interfaces.Expression<org.elsfs.tool.sql.singular.facade.UpdateAction<Long>>, org.elsfs.tool.sql.interfaces.single.Between<org.elsfs.tool.sql.singular.facade.UpdateAction<Long>>, org.elsfs.tool.sql.interfaces.single.Eq<org.elsfs.tool.sql.singular.facade.UpdateAction<Long>>, org.elsfs.tool.sql.interfaces.single.Ge<org.elsfs.tool.sql.singular.facade.UpdateAction<Long>>, org.elsfs.tool.sql.interfaces.single.Gt<org.elsfs.tool.sql.singular.facade.UpdateAction<Long>>, org.elsfs.tool.sql.interfaces.single.In<org.elsfs.tool.sql.singular.facade.UpdateAction<Long>>, org.elsfs.tool.sql.interfaces.single.IsNotNull<org.elsfs.tool.sql.singular.facade.UpdateAction<Long>>, org.elsfs.tool.sql.interfaces.single.IsNull<org.elsfs.tool.sql.singular.facade.UpdateAction<Long>>, org.elsfs.tool.sql.interfaces.single.Le<org.elsfs.tool.sql.singular.facade.UpdateAction<Long>>, org.elsfs.tool.sql.interfaces.single.Like<org.elsfs.tool.sql.singular.facade.UpdateAction<Long>>, org.elsfs.tool.sql.interfaces.single.LikeLeft<org.elsfs.tool.sql.singular.facade.UpdateAction<Long>>, org.elsfs.tool.sql.interfaces.single.LikeRight<org.elsfs.tool.sql.singular.facade.UpdateAction<Long>>, org.elsfs.tool.sql.interfaces.single.Lt<org.elsfs.tool.sql.singular.facade.UpdateAction<Long>>, org.elsfs.tool.sql.interfaces.single.Ne<org.elsfs.tool.sql.singular.facade.UpdateAction<Long>>, org.elsfs.tool.sql.interfaces.single.NotBetween<org.elsfs.tool.sql.singular.facade.UpdateAction<Long>>, org.elsfs.tool.sql.interfaces.single.NotIn<org.elsfs.tool.sql.singular.facade.UpdateAction<Long>>, org.elsfs.tool.sql.interfaces.single.NotLike<org.elsfs.tool.sql.singular.facade.UpdateAction<Long>>, org.elsfs.tool.sql.resolve.ResolveFieldName, org.elsfs.tool.sql.singular.facade.ConditionOperations<org.elsfs.tool.sql.singular.facade.UpdateAction<Long>>, org.elsfs.tool.sql.singular.facade.DbAction<Long>, org.elsfs.tool.sql.singular.facade.LimitOperations<org.elsfs.tool.sql.singular.facade.UpdateAction<Long>>, org.elsfs.tool.sql.singular.facade.UpdateAction<Long>, org.elsfs.tool.sql.singular.facade.UpdateOperations<org.elsfs.tool.sql.singular.facade.UpdateAction<Long>>

public class MybatisPlusUpdateAction<E> extends AbstractMybatisPlusConditionOperations<org.elsfs.tool.sql.singular.facade.UpdateAction<Long>,E> implements org.elsfs.tool.sql.singular.facade.UpdateAction<Long>
MybatisPlus更新动作实现
从以下版本开始:
0.0.4
作者:
zeng
  • 字段详细资料

    • elsfsMapper

      protected final ElsfsMapper<E> elsfsMapper
      基础Mapper
  • 构造器详细资料

    • MybatisPlusUpdateAction

      public MybatisPlusUpdateAction(com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper<E> updateWrapper, ElsfsMapper<E> elsfsMapper)
  • 方法详细资料

    • getWrapper

      protected com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper<E> getWrapper()
      获取Wrapper对象,用于高级查询
      返回:
      Wrapper查询对象
    • set

      public org.elsfs.tool.sql.singular.facade.UpdateAction<Long> set(String field, Object value)
      设置值
      指定者:
      set 在接口中 org.elsfs.tool.sql.singular.facade.UpdateOperations<E>
      参数:
      field - 表字段名
      value - 值
      返回:
      具体实现
    • set

      public org.elsfs.tool.sql.singular.facade.UpdateAction<Long> set(Enum<?> field, Object value)
      设置值
      指定者:
      set 在接口中 org.elsfs.tool.sql.singular.facade.UpdateOperations<E>
      参数:
      field - 表字段枚举
      value - 值
      返回:
      具体实现
    • set

      public org.elsfs.tool.sql.singular.facade.UpdateAction<Long> set(boolean condition, String field, Object value)
      设置值
      指定者:
      set 在接口中 org.elsfs.tool.sql.singular.facade.UpdateOperations<E>
      参数:
      condition - 是否应用设置
      field - 表字段名
      value - 值
      返回:
      具体实现
    • set

      public org.elsfs.tool.sql.singular.facade.UpdateAction<Long> set(boolean condition, Enum<?> field, Object value)
      设置值
      指定者:
      set 在接口中 org.elsfs.tool.sql.singular.facade.UpdateOperations<E>
      参数:
      condition - 是否应用设置
      field - 表字段枚举
      value - 值
      返回:
      具体实现
    • getUpdate

      protected com.baomidou.mybatisplus.core.conditions.update.Update<?,?> getUpdate()
      获取更新接口实现
      返回:
      实现对象
    • setSql

      public org.elsfs.tool.sql.singular.facade.UpdateAction<Long> setSql(String sqlValue)
      设置SQL
      指定者:
      setSql 在接口中 org.elsfs.tool.sql.singular.facade.UpdateOperations<E>
      参数:
      sqlValue - SQL片段:name=xxx
      返回:
      具体实现
    • setSql

      public org.elsfs.tool.sql.singular.facade.UpdateAction<Long> setSql(boolean condition, String sqlValue)
      设置SQL
      指定者:
      setSql 在接口中 org.elsfs.tool.sql.singular.facade.UpdateOperations<E>
      参数:
      condition - 是否应用设置SQL
      sqlValue - SQL片段:name=xxx
      返回:
      具体实现
    • execute

      public Long execute()
      执行动作
      指定者:
      execute 在接口中 org.elsfs.tool.sql.singular.facade.DbAction<E>
      返回:
      结果
    • resolveFieldName

      public String resolveFieldName(Enum<?> field)
      解析字段枚举名称
      指定者:
      resolveFieldName 在接口中 org.elsfs.tool.sql.resolve.ResolveFieldName
      指定者:
      resolveFieldName 在类中 AbstractMybatisPlusConditionOperations<org.elsfs.tool.sql.singular.facade.UpdateAction<Long>,E>
      参数:
      field - 字段枚举
      返回:
      字段名称
    • resolveFieldName

      public String resolveFieldName(String tableAlias, Enum<?> field)
      解析字段枚举名称
      指定者:
      resolveFieldName 在接口中 org.elsfs.tool.sql.resolve.ResolveFieldName
      指定者:
      resolveFieldName 在类中 AbstractMybatisPlusConditionOperations<org.elsfs.tool.sql.singular.facade.UpdateAction<Long>,E>
      参数:
      tableAlias - 字段表别名
      field - 字段枚举
      返回:
      字段名称
    • instance

      protected org.elsfs.tool.sql.singular.facade.UpdateAction<Long> instance(com.baomidou.mybatisplus.core.conditions.Wrapper<E> wrapper)
      获取操作Action实例
      指定者:
      instance 在类中 AbstractMybatisPlusConditionOperations<org.elsfs.tool.sql.singular.facade.UpdateAction<Long>,E>
      参数:
      wrapper - 条件Wrapper对象
      返回:
      Action实例
    • limit

      public org.elsfs.tool.sql.singular.facade.UpdateAction<Long> limit(long num)
      限制查询数量
      指定者:
      limit 在接口中 org.elsfs.tool.sql.singular.facade.LimitOperations<E>
      参数:
      num - 数量
      返回:
      具体实现
    • limit

      public org.elsfs.tool.sql.singular.facade.UpdateAction<Long> limit(boolean condition, long num)
      限制查询数量
      指定者:
      limit 在接口中 org.elsfs.tool.sql.singular.facade.LimitOperations<E>
      参数:
      condition - 执行条件
      num - 数量
      返回:
      具体实现