Module bus.pager

Class XugudbRowBounds

All Implemented Interfaces:
Dialect

public class XugudbRowBounds extends AbstractRowBounds
Xugudb dialect for pagination based on RowBounds. This class provides Xugudb-specific SQL generation for pagination using offset and limit.
Since:
Java 17+
Author:
Kimi Liu
  • Constructor Details

    • XugudbRowBounds

      public XugudbRowBounds()
  • Method Details

    • getPageSql

      public String getPageSql(String sql, org.apache.ibatis.session.RowBounds rowBounds, org.apache.ibatis.cache.CacheKey pageKey)
      Generates the Xugudb-specific pagination SQL using RowBounds. It appends LIMIT ? or LIMIT ?, ? to the original SQL based on the offset.
      Specified by:
      getPageSql in class AbstractRowBounds
      Parameters:
      sql - the original SQL string
      rowBounds - the RowBounds object containing offset and limit
      pageKey - the CacheKey for the paginated query
      Returns:
      the Xugudb-specific paginated SQL string