improve wall filter

This commit is contained in:
wenshao
2013-04-11 15:38:13 +08:00
parent 7d80ffd7a7
commit eddb42ae53
28 changed files with 946 additions and 69 deletions
@@ -32,6 +32,8 @@ public class WallCheckResult {
private final boolean syntaxError;
private final WallSqlStat sqlStat;
public WallCheckResult(){
this(null);
}
@@ -50,15 +52,17 @@ public class WallCheckResult {
statementList = stmtList;
syntaxError = false;
}
this.sqlStat = sqlStat;
}
public WallCheckResult(WallSqlStat sqlStat){
this(sqlStat, Collections.<SQLStatement> emptyList());
}
public WallCheckResult(List<Violation> violations, Map<String, WallSqlTableStat> tableStats,
public WallCheckResult(WallSqlStat sqlStat, List<Violation> violations, Map<String, WallSqlTableStat> tableStats,
Map<String, WallSqlFunctionStat> functionStats, List<SQLStatement> statementList,
boolean syntaxError){
this.sqlStat = sqlStat;
this.tableStats = tableStats;
this.violations = violations;
this.functionStats = functionStats;
@@ -85,4 +89,9 @@ public class WallCheckResult {
public boolean isSyntaxError() {
return syntaxError;
}
public WallSqlStat getSqlStat() {
return sqlStat;
}
}