Class OpJoinImpl<T,M extends com.github.yulichang.base.MPJBaseMapper<T>>

java.lang.Object
io.r2mo.dbe.mybatisplus.spi.OpJoinImpl<T,M>
All Implemented Interfaces:
io.r2mo.base.dbe.operation.OpJoin<T,com.github.yulichang.query.MPJQueryWrapper<T>>

public class OpJoinImpl<T,M extends com.github.yulichang.base.MPJBaseMapper<T>> extends Object implements io.r2mo.base.dbe.operation.OpJoin<T,com.github.yulichang.query.MPJQueryWrapper<T>>
Author:
lang : 2025-10-23
  • Method Details

    • afterConstruct

      public void afterConstruct(JoinProxy<T> joinProxy)
      此处的后期构造主要用于
           抽象层   FactoryDBAction / OpJoin
      
                                             OpJoinImpl -> OpJoinWriter
      
                                             M = MPJBaseMapper 类型
           由于整个继承树上的类型是 MPJBaseMapper 类型的执行器,所以无法直接将第二执行器或第三执行器注入到 OpJoinImpl
           中去完成写操作的支持,所以只能通过此处的后置构造来实现注入过程,确保OpJoinWriter 能够拿到完整的执行器集合,从而
           完成写操作,并且在执行写之前会执行相关检查来确保写操作是合法的。
       
      Parameters:
      joinProxy - JoinProxy
    • findMany

      public io.r2mo.typed.json.JArray findMany(com.github.yulichang.query.MPJQueryWrapper<T> queryWrapper)
      Specified by:
      findMany in interface io.r2mo.base.dbe.operation.OpJoin<T,M extends com.github.yulichang.base.MPJBaseMapper<T>>
    • findOne

      public io.r2mo.typed.json.JObject findOne(com.github.yulichang.query.MPJQueryWrapper<T> queryWrapper)
      Specified by:
      findOne in interface io.r2mo.base.dbe.operation.OpJoin<T,M extends com.github.yulichang.base.MPJBaseMapper<T>>
    • findPage

      public io.r2mo.typed.json.JObject findPage(io.r2mo.base.dbe.syntax.QQuery query)
      Specified by:
      findPage in interface io.r2mo.base.dbe.operation.OpJoin<T,M extends com.github.yulichang.base.MPJBaseMapper<T>>
    • findById

      public io.r2mo.typed.json.JObject findById(Serializable id)
      Specified by:
      findById in interface io.r2mo.base.dbe.operation.OpJoin<T,M extends com.github.yulichang.base.MPJBaseMapper<T>>
    • count

      public Optional<Long> count(com.github.yulichang.query.MPJQueryWrapper<T> queryWrapper)
      Specified by:
      count in interface io.r2mo.base.dbe.operation.OpJoin<T,M extends com.github.yulichang.base.MPJBaseMapper<T>>
    • create

      public io.r2mo.typed.json.JObject create(io.r2mo.typed.json.JObject latest)
      Specified by:
      create in interface io.r2mo.base.dbe.operation.OpJoin<T,M extends com.github.yulichang.base.MPJBaseMapper<T>>
    • removeById

      public Boolean removeById(Serializable id)
      Specified by:
      removeById in interface io.r2mo.base.dbe.operation.OpJoin<T,M extends com.github.yulichang.base.MPJBaseMapper<T>>
    • removeBy

      public Boolean removeBy(com.github.yulichang.query.MPJQueryWrapper<T> queryWrapper)
      Specified by:
      removeBy in interface io.r2mo.base.dbe.operation.OpJoin<T,M extends com.github.yulichang.base.MPJBaseMapper<T>>
    • updateById

      public io.r2mo.typed.json.JObject updateById(Serializable id, io.r2mo.typed.json.JObject latest)
      Specified by:
      updateById in interface io.r2mo.base.dbe.operation.OpJoin<T,M extends com.github.yulichang.base.MPJBaseMapper<T>>
    • update

      public io.r2mo.typed.json.JObject update(com.github.yulichang.query.MPJQueryWrapper<T> queryWrapper, io.r2mo.typed.json.JObject latest)
      Specified by:
      update in interface io.r2mo.base.dbe.operation.OpJoin<T,M extends com.github.yulichang.base.MPJBaseMapper<T>>