Interface CountMsId


public interface CountMsId
构建当前查询对应的 count 方法 id 返回的 msId 会先判断是否存在自定义的方法,存在就直接使用 如果不存在,会根据当前的 msId 创建 MappedStatement
Since:
Java 17+
Author:
Kimi Liu
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final CountMsId
    默认实现
  • Method Summary

    Modifier and Type
    Method
    Description
    genCountMsId(org.apache.ibatis.mapping.MappedStatement ms, Object parameter, org.apache.ibatis.mapping.BoundSql boundSql, String countSuffix)
    构建当前查询对应的 count 方法 id
  • Field Details

    • DEFAULT

      static final CountMsId DEFAULT
      默认实现
  • Method Details

    • genCountMsId

      String genCountMsId(org.apache.ibatis.mapping.MappedStatement ms, Object parameter, org.apache.ibatis.mapping.BoundSql boundSql, String countSuffix)
      构建当前查询对应的 count 方法 id
      Parameters:
      ms - 查询对应的 MappedStatement
      parameter - 方法参数
      boundSql - 查询SQL
      countSuffix - 配置的 count 后缀
      Returns:
      count 查询丢的 msId