Interface OrderByBuilder<T extends OrderByBuilder<T>>

    • Method Detail

      • orderBy

        T orderBy​(String expression,
                  boolean ascending)
        Like orderBy(java.lang.String, boolean, boolean) but with nullFirst set to false.
        Parameters:
        expression - The expression for the order by clause
        ascending - Wether the order should be ascending or descending.
        Returns:
        The query builder for chaining calls
        Since:
        1.4.0
      • orderBy

        T orderBy​(String expression,
                  boolean ascending,
                  boolean nullFirst)
        Adds an order by clause with the given expression to the query.
        Parameters:
        expression - The expression for the order by clause
        ascending - Wether the order should be ascending or descending.
        nullFirst - Wether null elements should be ordered first or not.
        Returns:
        The query builder for chaining calls
      • orderByAsc

        T orderByAsc​(String expression)
        Like orderByAsc(java.lang.String, boolean) but with nullFirst set to false.
        Parameters:
        expression - The expression for the order by clause
        Returns:
        The query builder for chaining calls
      • orderByAsc

        T orderByAsc​(String expression,
                     boolean nullFirst)
        Like orderBy(java.lang.String, boolean, boolean) but with ascending set to true.
        Parameters:
        expression - The expression for the order by clause
        nullFirst - Wether null elements should be ordered first or not.
        Returns:
        The query builder for chaining calls
      • orderByDesc

        T orderByDesc​(String expression)
        Like orderByDesc(java.lang.String, boolean) but with nullFirst set to false.
        Parameters:
        expression - The expression for the order by clause
        Returns:
        The query builder for chaining calls
      • orderByDesc

        T orderByDesc​(String expression,
                      boolean nullFirst)
        Like orderBy(java.lang.String, boolean, boolean) but with ascending set to false.
        Parameters:
        expression - The expression for the order by clause
        nullFirst - Wether null elements should be ordered first or not.
        Returns:
        The query builder for chaining calls