接口 PageSqlHandle

所有已知实现类:
PageSqlHandleH2, PageSqlHandleMySql, PageSqlHandlePostgreSql, PageSqlHandleSqlite, PageSqlHandleSqlServer

public interface PageSqlHandle
分页实现。默认是mysql的分页实现。
作者:
lingkang Created by 2024/3/3
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final Pattern
     
  • 方法概要

    修饰符和类型
    方法
    说明
    default void
    handleParams(org.apache.ibatis.mapping.BoundSql boundSql, PreparedStatement statement)
     
    default PageSqlInfo
    handleSql(String selectSql, int page, int size)
    处理分页sql, 下面默认是mysql分页逻辑
  • 字段详细资料

    • orderBy

      static final Pattern orderBy
  • 方法详细资料

    • handleSql

      default PageSqlInfo handleSql(String selectSql, int page, int size)
      处理分页sql, 下面默认是mysql分页逻辑
      参数:
      selectSql - 查询的原sql
      page - 最小值 1
      size - 最小值 1
    • handleParams

      default void handleParams(org.apache.ibatis.mapping.BoundSql boundSql, PreparedStatement statement) throws Throwable
      抛出:
      Throwable