Search in sources :

Example 6 with BLangHaving

use of org.wso2.ballerinalang.compiler.tree.clauses.BLangHaving in project ballerina by ballerina-lang.

the class SiddhiQueryBuilder method visit.

@Override
public void visit(BLangHaving having) {
    BLangBinaryExpr expr = (BLangBinaryExpr) having.getExpression();
    havingClause = new StringBuilder("having ");
    expr.accept(this);
    havingClause.append(binaryExpr);
}
Also used : BLangBinaryExpr(org.wso2.ballerinalang.compiler.tree.expressions.BLangBinaryExpr)

Example 7 with BLangHaving

use of org.wso2.ballerinalang.compiler.tree.clauses.BLangHaving in project ballerina by ballerina-lang.

the class SqlQueryBuilder method createSQLHavingClause.

private void createSQLHavingClause(BLangSelectClause select) {
    BLangHaving having = (BLangHaving) select.getHaving();
    having.accept(this);
}
Also used : BLangHaving(org.wso2.ballerinalang.compiler.tree.clauses.BLangHaving)

Aggregations

BLangHaving (org.wso2.ballerinalang.compiler.tree.clauses.BLangHaving)4 BLangGroupBy (org.wso2.ballerinalang.compiler.tree.clauses.BLangGroupBy)2 BLangBinaryExpr (org.wso2.ballerinalang.compiler.tree.expressions.BLangBinaryExpr)2 GroupByNode (org.ballerinalang.model.tree.clauses.GroupByNode)1 HavingNode (org.ballerinalang.model.tree.clauses.HavingNode)1 SelectExpressionNode (org.ballerinalang.model.tree.clauses.SelectExpressionNode)1 BLangSelectExpression (org.wso2.ballerinalang.compiler.tree.clauses.BLangSelectExpression)1 BLangExpression (org.wso2.ballerinalang.compiler.tree.expressions.BLangExpression)1