Interface SolutionModifierClause<T extends AbstractQueryBuilder<T>>

    • Method Detail

      • addOrderBy

        T addOrderBy​(Expr orderBy)
        Add an ascending order by. Use ExprFactory or NodeValue static or the AbstractQueryBuilder.makeExpr methods to create the expression.
        Parameters:
        orderBy - The expression to order by.
        Returns:
        This builder for chaining.
        See Also:
        ExprFactory, NodeValue, AbstractQueryBuilder.makeExpr(String)
      • addOrderBy

        T addOrderBy​(java.lang.Object orderBy)
        Add an ascending order by.
        Parameters:
        orderBy - The object to order by.
        Returns:
        This builder for chaining.
      • addOrderBy

        T addOrderBy​(SortCondition orderBy)
        Add an ascending order by.
        Parameters:
        orderBy - The SortCondition to order by.
        Returns:
        This builder for chaining.
      • addOrderBy

        T addOrderBy​(Expr orderBy,
                     Order order)
        Add an order by with direction specified.
        Parameters:
        orderBy - The expression to order by.
        order - The direction to order.
        Returns:
        This builder for chaining.
      • addOrderBy

        T addOrderBy​(java.lang.Object orderBy,
                     Order order)
        Add an order by with direction specified.
        Parameters:
        orderBy - The object to order by.
        order - The direction to order.
        Returns:
        This builder for chaining.
      • addGroupBy

        T addGroupBy​(java.lang.Object groupBy)
        Add a variable to the group by clause.
        Parameters:
        groupBy - The object to group by.
        Returns:
        This builder for chaining.
      • addGroupBy

        T addGroupBy​(Expr groupBy)
        Add an expression to the group by clause. The expression may be created from a string using the makeExpr() method.
        Parameters:
        groupBy - The expression to add.
      • addGroupBy

        T addGroupBy​(java.lang.Object var,
                     Expr expr)
        Add var and expression to the group by clause.
        Parameters:
        var - The variable to add.
        expr - The expression to add.
      • addGroupBy

        T addGroupBy​(java.lang.Object var,
                     java.lang.String expr)
        Add var and expression to the group by clause.
        Parameters:
        var - The variable to add.
        expr - The expression to add.
      • addHaving

        T addHaving​(java.lang.String expression)
             throws ParseException
        Add a having expression.
        Parameters:
        expression - Expression to evaluate for the having.
        Returns:
        This builder for chaining.
        Throws:
        ParseException
      • addHaving

        T addHaving​(java.lang.Object var)
             throws ParseException
        Add a having expression.
        Parameters:
        var - the variable to have.
        Returns:
        This builder for chaining.
        Throws:
        ParseException
      • setLimit

        T setLimit​(int limit)
        Set the limit. Setting the limit to 0 (zero) sets no limit.
        Parameters:
        limit - the maximum number of results to return.
        Returns:
        This builder for chaining.
      • setOffset

        T setOffset​(int offset)
        Set the offset. Setting the offset to 0 (zero) sets no offset.
        Parameters:
        offset - the number of results to skip before returning results..
        Returns:
        This builder for chaining.
      • getSolutionModifierHandler

        SolutionModifierHandler getSolutionModifierHandler()
        Get the Solution modifier for this clause.
        Returns:
        The SolutionModifierHandler the clause is using.