Interface LimitBuilder<X extends LimitBuilder<X>>

    • Method Detail

      • setFirstResult

        X setFirstResult​(int firstResult)
        Set the position of the first result to retrieve.
        Parameters:
        firstResult - The position of the first result, numbered from 0
        Returns:
        This builder for chaining
      • setMaxResults

        X setMaxResults​(int maxResults)
        Set the maximum number of results to retrieve.
        Parameters:
        maxResults - The maximum number of results to retrieve
        Returns:
        This builder for chaining
      • getFirstResult

        int getFirstResult()
        The position of the first result. Returns 0 if setFirstResult was not used.
        Returns:
        The position of the first result
      • getMaxResults

        int getMaxResults()
        The maximum number of results to retrieve. Returns Integer.MAX_VALUE if setMaxResults was not used.
        Returns:
        The maximum number of results