refactor sql parser group by

This commit is contained in:
高铁
2016-01-09 13:56:09 +08:00
parent 739645fbf1
commit b4155d7be2
26 changed files with 220 additions and 329 deletions
@@ -26,6 +26,7 @@ public class SQLSelectGroupByClause extends SQLObjectImpl {
private final List<SQLExpr> items = new ArrayList<SQLExpr>();
private SQLExpr having;
private boolean rollUp = false;
public SQLSelectGroupByClause(){
@@ -39,12 +40,24 @@ public class SQLSelectGroupByClause extends SQLObjectImpl {
visitor.endVisit(this);
}
public boolean isRollUp() {
return rollUp;
}
public void setRollUp(boolean rollUp) {
this.rollUp = rollUp;
}
public SQLExpr getHaving() {
return this.having;
}
public void setHaving(SQLExpr having) {
if (having != null) {
having.setParent(this);
}
this.having = having;
}