improve SchemaStatVisitor

This commit is contained in:
wenshao
2013-05-26 00:37:39 +08:00
parent 06d25a84b3
commit e324eef0d9
5 changed files with 142 additions and 12 deletions
@@ -366,6 +366,11 @@ public class TableStat {
private String table;
private String name;
private boolean where;
private boolean select;
private boolean groupBy;
private boolean having;
private boolean join;
private Map<String, Object> attributes = new HashMap<String, Object>();
@@ -386,6 +391,46 @@ public class TableStat {
this.table = table;
}
public boolean isWhere() {
return where;
}
public void setWhere(boolean where) {
this.where = where;
}
public boolean isSelect() {
return select;
}
public void setSelec(boolean select) {
this.select = select;
}
public boolean isGroupBy() {
return groupBy;
}
public void setGroupBy(boolean groupBy) {
this.groupBy = groupBy;
}
public boolean isHaving() {
return having;
}
public boolean isJoin() {
return join;
}
public void setJoin(boolean join) {
this.join = join;
}
public void setHaving(boolean having) {
this.having = having;
}
public String getName() {
return name;
}