improve sql parser & wall filter

This commit is contained in:
wenshao
2013-04-05 01:59:44 +08:00
parent bec180c36f
commit d268227242
12 changed files with 211 additions and 105 deletions
@@ -34,6 +34,10 @@ public class WallSqlTableStat {
public void incrementSelectCount() {
this.selectCount++;
}
public void addSelectCount(int value) {
this.selectCount += value;
}
public int getSelectIntoCount() {
return selectIntoCount;
@@ -42,6 +46,10 @@ public class WallSqlTableStat {
public void incrementSelectIntoCount() {
this.selectIntoCount++;
}
public void addSelectIntoCount(int value) {
this.selectIntoCount += value;
}
public int getInsertCount() {
return insertCount;
@@ -50,6 +58,10 @@ public class WallSqlTableStat {
public void incrementInsertCount() {
this.insertCount++;
}
public void addInsertCount(int value) {
this.insertCount += value;
}
public int getUpdateCount() {
return updateCount;
@@ -59,6 +71,10 @@ public class WallSqlTableStat {
this.updateCount++;
}
public void addUpdateCount(int value) {
this.deleteCount += value;
}
public int getDeleteCount() {
return deleteCount;
}
@@ -67,6 +83,10 @@ public class WallSqlTableStat {
this.deleteCount++;
}
public void addDeleteCount(int value) {
this.deleteCount += value;
}
public int getTruncateCount() {
return truncateCount;
}
@@ -75,6 +95,10 @@ public class WallSqlTableStat {
this.truncateCount++;
}
public void addTruncateCount(int value) {
this.truncateCount += value;
}
public int getCreateCount() {
return createCount;
}
@@ -83,6 +107,10 @@ public class WallSqlTableStat {
this.createCount++;
}
public void addCreateCount(int value) {
this.createCount += value;
}
public int getAlterCount() {
return alterCount;
}
@@ -91,6 +119,10 @@ public class WallSqlTableStat {
this.alterCount++;
}
public void addAlterCount(int value) {
this.alterCount += value;
}
public int getDropCount() {
return dropCount;
}
@@ -99,4 +131,7 @@ public class WallSqlTableStat {
this.dropCount++;
}
public void addDropCount(int value) {
this.dropCount += value;
}
}