java.lang.Object
org.miaixz.bus.pager.dialect.AbstractDialect
org.miaixz.bus.pager.dialect.AbstractRowBounds
org.miaixz.bus.pager.dialect.rowbounds.XugudbRowBounds
- All Implemented Interfaces:
Dialect
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
-
Field Summary
Fields inherited from class org.miaixz.bus.pager.dialect.AbstractDialect
countSqlParser, orderBySqlParser -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPageSql(String sql, org.apache.ibatis.session.RowBounds rowBounds, org.apache.ibatis.cache.CacheKey pageKey) Generates the Xugudb-specific pagination SQL usingRowBounds.Methods inherited from class org.miaixz.bus.pager.dialect.AbstractRowBounds
afterAll, afterCount, afterPage, beforeCount, beforePage, getPageSql, processParameterObject, setProperties, skipMethods inherited from class org.miaixz.bus.pager.dialect.AbstractDialect
getCountSqlMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.miaixz.bus.pager.Dialect
asyncCountTask, isAsyncCount
-
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 usingRowBounds. It appendsLIMIT ?orLIMIT ?, ?to the original SQL based on the offset.- Specified by:
getPageSqlin classAbstractRowBounds- Parameters:
sql- the original SQL stringrowBounds- theRowBoundsobject containing offset and limitpageKey- the CacheKey for the paginated query- Returns:
- the Xugudb-specific paginated SQL string
-