improve sql wall

This commit is contained in:
kiki
2013-09-10 14:19:56 +08:00
parent b8556813f2
commit afca1fe18f
10 changed files with 217 additions and 161 deletions
@@ -39,6 +39,7 @@ public class WallConfig implements WallConfigMBean {
private boolean conditionAndAlwayTrueAllow = false;
private boolean conditionDoubleConstAllow = false;
private boolean conditionLikeTrueAllow = false;
private boolean selectAllColumnAllow = true;
@@ -58,7 +59,7 @@ public class WallConfig implements WallConfigMBean {
private boolean setAllow = true;
private boolean commitAllow = true;
private boolean rollbackAllow = true;
private boolean useAllow = false;
private boolean useAllow = true;
private boolean multiStatementAllow = false;
@@ -130,6 +131,14 @@ public class WallConfig implements WallConfigMBean {
this.conditionDoubleConstAllow = conditionDoubleConstAllow;
}
public boolean isConditionLikeTrueAllow() {
return conditionLikeTrueAllow;
}
public void setConditionLikeTrueAllow(boolean conditionLikeTrueAllow) {
this.conditionLikeTrueAllow = conditionLikeTrueAllow;
}
public boolean isLimitZeroAllow() {
return limitZeroAllow;
}