improve WallFilter, support conditionOpBitwiseAllow

This commit is contained in:
wenshao
2013-03-19 01:12:11 +08:00
parent 9e12ffb86e
commit 19b24d8022
16 changed files with 235 additions and 44 deletions
@@ -51,7 +51,7 @@ public class WallConfig implements WallConfigMBean {
private boolean commentAllow = false;
private boolean strictSyntaxCheck = true;
private boolean constArithmeticAllow = false;
private boolean constArithmeticAllow = true;
private boolean describeAllow = false;
@@ -83,10 +83,29 @@ public class WallConfig implements WallConfigMBean {
private boolean wrapAllow = true;
private boolean metadataAllow = true;
private boolean conditionOpXorAllow = false;
private boolean conditionOpBitwseAllow = false;
public WallConfig(){
}
public boolean isConditionOpXorAllow() {
return conditionOpXorAllow;
}
public void setConditionOpXorAllow(boolean conditionOpXorAllow) {
this.conditionOpXorAllow = conditionOpXorAllow;
}
public boolean isConditionOpBitwseAllow() {
return conditionOpBitwseAllow;
}
public void setConditionOpBitwseAllow(boolean conditionOpBitwseAllow) {
this.conditionOpBitwseAllow = conditionOpBitwseAllow;
}
public String getTenantTablePattern() {
return tenantTablePattern;
}