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 -
Method Summary
Modifier and TypeMethodDescriptiongenCountMsId(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
Default implementation ofCountMsId, 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 queryparameter- the method parametersboundSql- the BoundSql object for the querycountSuffix- the configured suffix for count queries- Returns:
- the msId for the count query
-