mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
improve SchemaStatVisitor
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user