Class DBJ<T>

java.lang.Object
io.r2mo.dbe.common.DBEJ<com.github.yulichang.query.MPJQueryWrapper<T>,T,com.github.yulichang.base.MPJBaseMapper<T>>
io.r2mo.dbe.mybatisplus.DBJ<T>

public class DBJ<T> extends io.r2mo.dbe.common.DBEJ<com.github.yulichang.query.MPJQueryWrapper<T>,T,com.github.yulichang.base.MPJBaseMapper<T>>
Author:
lang : 2025-10-23
  • Field Summary

    Fields inherited from class io.r2mo.dbe.common.DBEJ

    opJoin, ref
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    alias(Class<?> entityCls, String field, String alias)
     
    alias(String table, String field, String alias)
     
    protected io.r2mo.base.dbe.operation.QrAnalyzer<com.github.yulichang.query.MPJQueryWrapper<T>>
     
    static <T> DBJ<T>
    of(io.r2mo.base.dbe.common.DBRef ref, JoinProxy<T> mapper)
     
    static <T> DBJ<T>
    of(io.r2mo.base.dbe.Join meta, JoinProxy<T> baseMapper)
    常见构造,可直接使用

    Methods inherited from class io.r2mo.dbe.common.DBEJ

    count, count, count, count, create, executor, findAll, findExist, findExist, findFull, findFull, findMany, findMany, findMany, findMany, findManyBy, findManyIn, findManyIn, findOne, findOne, findOne, findOne, findOne, findOneBy, findPage, findPage, removeBy, removeBy, removeBy, removeBy, removeBy, updateBy, updateBy, updateBy, updateBy, updateBy

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • afterConstruct

      protected void afterConstruct()
    • analyzer

      protected io.r2mo.base.dbe.operation.QrAnalyzer<com.github.yulichang.query.MPJQueryWrapper<T>> analyzer()
      Specified by:
      analyzer in class io.r2mo.dbe.common.DBEJ<com.github.yulichang.query.MPJQueryWrapper<T>,T,com.github.yulichang.base.MPJBaseMapper<T>>
    • alias

      public DBJ<T> alias(String table, String field, String alias)
    • alias

      public DBJ<T> alias(Class<?> entityCls, String field, String alias)
    • of

      public static <T> DBJ<T> of(io.r2mo.base.dbe.Join meta, JoinProxy<T> baseMapper)
      常见构造,可直接使用
           DBJ.of(Join.of(
                classFrom, from,
                classTo, to,
           )).xxxMethod(???)
       
      此方法在调用过程中会直接根据 Join 中的定义来构造节点相关信息,需要注意一点就是此处使用 DBLoad 构造 的节点信息本身是完全独立的节点,和 DBRef 以及 DBJ 的数量无关,而加载流程中会直接截断加载,即直接通 过实际实现层来加载 DBNode 的基本信息,由于存在全局缓存,所以不会存在重复加载的问题。最终调试的时候要注意: 全局缓存中的 DBNode 是共享的!
      Parameters:
      meta - JOIN 元信息
      baseMapper - EXECUTOR
      Returns:
      当前引用
    • of

      public static <T> DBJ<T> of(io.r2mo.base.dbe.common.DBRef ref, JoinProxy<T> mapper)