类 LimitHelper


  • public class LimitHelper
    extends Object
    A helper for dealing with LimitHandler implementations
    作者:
    Lukasz Antoniak (lukasz dot antoniak at gmail dot com)
    • 方法详细资料

      • 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 handler
        selection - 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