Class SqlServerRowBounds

All Implemented Interfaces:
Dialect
Direct Known Subclasses:
SqlServer2012RowBounds

public class SqlServerRowBounds extends AbstractRowBounds
sqlserver 基于 RowBounds 的分页
Since:
Java 17+
Author:
Kimi Liu
  • Field Details

  • Constructor Details

    • SqlServerRowBounds

      public SqlServerRowBounds()
  • Method Details

    • getCountSql

      public String getCountSql(org.apache.ibatis.mapping.MappedStatement ms, org.apache.ibatis.mapping.BoundSql boundSql, Object parameterObject, org.apache.ibatis.session.RowBounds rowBounds, org.apache.ibatis.cache.CacheKey countKey)
      Description copied from interface: Dialect
      生成 count 查询 sql
      Specified by:
      getCountSql in interface Dialect
      Overrides:
      getCountSql in class AbstractDialect
      Parameters:
      ms - MappedStatement
      boundSql - 绑定 SQL 对象
      parameterObject - 方法参数
      rowBounds - 分页参数
      countKey - count 缓存 key
      Returns:
      the object
    • getPageSql

      public String getPageSql(String sql, org.apache.ibatis.session.RowBounds rowBounds, org.apache.ibatis.cache.CacheKey pageKey)
      Specified by:
      getPageSql in class AbstractRowBounds
    • setProperties

      public void setProperties(Properties properties)
      Description copied from interface: Dialect
      设置参数
      Specified by:
      setProperties in interface Dialect
      Overrides:
      setProperties in class AbstractRowBounds
      Parameters:
      properties - 插件属性