refactor sql parser.

This commit is contained in:
wenshao
2017-08-28 01:26:21 +08:00
parent a983b2685b
commit 833a9b5a65
91 changed files with 2964 additions and 1368 deletions
@@ -403,8 +403,8 @@ public class TableStat {
public static class Column {
private String table;
private String name;
private final String table;
private final String name;
private boolean where;
private boolean select;
private boolean groupBy;
@@ -423,10 +423,6 @@ public class TableStat {
*/
private String dataType;
public Column(){
}
public Column(String table, String name){
this.table = table;
this.name = name;
@@ -436,11 +432,6 @@ public class TableStat {
return table;
}
public void setTable(String table) {
this.table = table;
this.fullName = null;
}
public String getFullName() {
if (fullName == null) {
if (table != null) {
@@ -512,11 +503,6 @@ public class TableStat {
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
this.fullName = null;
}
/**
* @since 1.0.20