Module bus.pager

Class OracleRowBounds

All Implemented Interfaces:
Dialect

public class OracleRowBounds extends AbstractRowBounds
Oracle dialect for pagination based on RowBounds. This class provides Oracle-specific SQL generation for pagination using ROWNUM.
Since:
Java 17+
Author:
Kimi Liu
  • Constructor Details

    • OracleRowBounds

      public OracleRowBounds()
  • Method Details

    • getPageSql

      public String getPageSql(String sql, org.apache.ibatis.session.RowBounds rowBounds, org.apache.ibatis.cache.CacheKey pageKey)
      Generates the Oracle-specific pagination SQL using RowBounds. It wraps the original SQL with a subquery that uses ROWNUM to achieve pagination.
      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 Oracle-specific paginated SQL string