/** * Appends a having qualifier expression of this query. An equivalent to * {@link #and(Expression...)} that can be used a syntactic sugar. * * @return this object */ public ColumnSelect<T> having(Expression expression) { havingExpressionIsActive = true; return and(expression); }
/** * Appends a qualifier expression of this query. An equivalent to * {@link #and(Expression...)} that can be used a syntactic sugar. * * @return this object */ public ColumnSelect<T> where(Expression expression) { return and(expression); }
/** * AND's provided expressions to the existing WHERE clause expression. * * @return this object */ public ColumnSelect<T> and(Expression... expressions) { if (expressions == null || expressions.length == 0) { return this; } return and(Arrays.asList(expressions)); }
/** * Appends a having qualifier expression of this query, using provided expression * String and an array of position parameters. This is an equivalent to * calling "and". * * @return this object */ public ColumnSelect<T> having(String expressionString, Object... parameters) { havingExpressionIsActive = true; return and(ExpressionFactory.exp(expressionString, parameters)); }
/** * Appends a qualifier expression of this query, using provided expression * String and an array of position parameters. This is an equivalent to * calling "and". * * @return this object */ public ColumnSelect<T> where(String expressionString, Object... parameters) { return and(ExpressionFactory.exp(expressionString, parameters)); }