类 LimitHelper
- java.lang.Object
-
- org.hibernate.dialect.pagination.LimitHelper
-
public class LimitHelper extends Object
A helper for dealing with LimitHandler implementations- 作者:
- Lukasz Antoniak (lukasz dot antoniak at gmail dot com)
-
-
方法概要
所有方法 静态方法 具体方法 修饰符和类型 方法 说明 static intgetFirstRow(RowSelection selection)Retrieve the indicated first row for paginationstatic booleanhasFirstRow(RowSelection selection)Is a first row limit indicated?static booleanhasMaxRows(RowSelection selection)Is a max row limit indicated?static booleanuseLimit(LimitHandler limitHandler, RowSelection selection)Should limit be applied?
-
-
-
方法详细资料
-
hasMaxRows
public static boolean hasMaxRows(RowSelection selection)
Is a max row limit indicated?- 参数:
selection- The row selection options- 返回:
- Whether a max row limit was indicated
-
useLimit
public static boolean useLimit(LimitHandler limitHandler, RowSelection selection)
Should limit be applied?- 参数:
limitHandler- The limit handlerselection- The row selection- 返回:
- Whether limiting is indicated
-
hasFirstRow
public static boolean hasFirstRow(RowSelection selection)
Is a first row limit indicated?- 参数:
selection- The row selection options- 返回:
- Whether a first row limit in indicated
-
getFirstRow
public static int getFirstRow(RowSelection selection)
Retrieve the indicated first row for pagination- 参数:
selection- The row selection options- 返回:
- The first row
-
-