Class CrudRepository<M extends com.baomidou.mybatisplus.core.mapper.BaseMapper<T>,T>

java.lang.Object
com.baomidou.mybatisplus.extension.repository.AbstractRepository<M,T>
io.quarkiverse.mybatis.plus.extension.repository.CrudRepository<M,T>
All Implemented Interfaces:
com.baomidou.mybatisplus.extension.repository.IRepository<T>
Direct Known Subclasses:
ServiceImpl

public abstract class CrudRepository<M extends com.baomidou.mybatisplus.core.mapper.BaseMapper<T>,T> extends com.baomidou.mybatisplus.extension.repository.AbstractRepository<M,T>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected M
     

    Fields inherited from class com.baomidou.mybatisplus.extension.repository.AbstractRepository

    log

    Fields inherited from interface com.baomidou.mybatisplus.extension.repository.IRepository

    DEFAULT_BATCH_SIZE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    protected String
    getSqlStatement(com.baomidou.mybatisplus.core.enums.SqlMethod sqlMethod)
     
    boolean
    saveBatch(Collection<T> entityList, int batchSize)
     
    boolean
    saveOrUpdateBatch(Collection<T> entityList, int batchSize)
     
    boolean
    updateBatchById(Collection<T> entityList, int batchSize)
     

    Methods inherited from class com.baomidou.mybatisplus.extension.repository.AbstractRepository

    executeBatch, executeBatch, getEntityClass, getMap, getMapperClass, getObj, getOne, getOneOpt, getSqlSessionFactory, removeById, saveOrUpdate

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface com.baomidou.mybatisplus.extension.repository.IRepository

    count, count, exists, getById, getOne, getOneOpt, getOptById, ktQuery, ktUpdate, lambdaQuery, lambdaQuery, lambdaUpdate, list, list, list, list, listByIds, listByMap, listMaps, listMaps, listMaps, listMaps, listObjs, listObjs, listObjs, listObjs, page, page, pageMaps, pageMaps, query, remove, removeById, removeById, removeByIds, removeByIds, removeByMap, save, update, update, update, updateById
  • Field Details

    • baseMapper

      @Inject protected M extends com.baomidou.mybatisplus.core.mapper.BaseMapper<T> baseMapper
  • Constructor Details

    • CrudRepository

      public CrudRepository()
  • Method Details

    • getBaseMapper

      public M getBaseMapper()
    • saveBatch

      public boolean saveBatch(Collection<T> entityList, int batchSize)
    • getSqlStatement

      protected String getSqlStatement(com.baomidou.mybatisplus.core.enums.SqlMethod sqlMethod)
    • saveOrUpdateBatch

      public boolean saveOrUpdateBatch(Collection<T> entityList, int batchSize)
    • updateBatchById

      public boolean updateBatchById(Collection<T> entityList, int batchSize)