Module bus.pager

Class CountMappedStatement

java.lang.Object
org.miaixz.bus.pager.binding.CountMappedStatement

public class CountMappedStatement extends Object
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 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 new MappedStatement for a count query. This new MappedStatement will have a result type of Long.class to return the count.
      Parameters:
      ms - the original MappedStatement from which to derive properties
      newMsId - the ID for the new count MappedStatement
      Returns:
      a new MappedStatement configured for a count query