java.lang.Object
org.miaixz.bus.pager.binding.CountMappedStatement
Utility class for creating new
MappedStatement objects, primarily for count queries. This class helps in
constructing a MappedStatement that returns an integer (long) count.- Since:
- Java 17+
- Author:
- Kimi Liu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.ibatis.mapping.MappedStatementnewCountMappedStatement(org.apache.ibatis.mapping.MappedStatement ms, String newMsId) Creates a newMappedStatementfor a count query.
-
Constructor Details
-
CountMappedStatement
public CountMappedStatement()
-
-
Method Details
-
newCountMappedStatement
public static org.apache.ibatis.mapping.MappedStatement newCountMappedStatement(org.apache.ibatis.mapping.MappedStatement ms, String newMsId) Creates a newMappedStatementfor a count query. This new MappedStatement will have a result type ofLong.classto return the count.- Parameters:
ms- the original MappedStatement from which to derive propertiesnewMsId- the ID for the new count MappedStatement- Returns:
- a new MappedStatement configured for a count query
-