Long
expression ::= COUNT ([DISTINCT] identification_variable | state_field_path_expression | single_valued_object_path_expression)
@see CountFunction @version 2.4 @since 2.4 @author Pascal Filion
844845846847848849850851852853854855856857
@Override public void visit(CountFunction expression) { expression.getExpression().accept(this); CountFunctionStateObject stateObject = new CountFunctionStateObject( parent, expression.hasDistinct(), this.stateObject ); stateObject.setExpression(expression); this.stateObject = stateObject; }
218219220221222223224225
add(stateObject); return (T) this; } protected void count(boolean distinct, String path) { StateObject stateObject = new CountFunctionStateObject(parent, distinct, literal(path)); add(stateObject); }