Module bus.pager

Interface CountMsId


public interface CountMsId
Builds the ID for the count method corresponding to the current query. The returned msId will first check for a custom method; if it exists, it will be used directly. If not, a MappedStatement will be created based on the current msId.
Since:
Java 17+
Author:
Kimi Liu
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final CountMsId
    Default implementation of CountMsId, which appends the count suffix to the MappedStatement ID.
  • Method Summary

    Modifier and Type
    Method
    Description
    genCountMsId(org.apache.ibatis.mapping.MappedStatement ms, Object parameter, org.apache.ibatis.mapping.BoundSql boundSql, String countSuffix)
    Generates the ID for the count method corresponding to the current query.
  • Field Details

    • DEFAULT

      static final CountMsId DEFAULT
      Default implementation of CountMsId, which appends the count suffix to the MappedStatement ID.
  • Method Details

    • genCountMsId

      String genCountMsId(org.apache.ibatis.mapping.MappedStatement ms, Object parameter, org.apache.ibatis.mapping.BoundSql boundSql, String countSuffix)
      Generates the ID for the count method corresponding to the current query.
      Parameters:
      ms - the MappedStatement corresponding to the query
      parameter - the method parameters
      boundSql - the BoundSql object for the query
      countSuffix - the configured suffix for count queries
      Returns:
      the msId for the count query