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