sqll wall

This commit is contained in:
温少
2012-03-22 18:16:54 +08:00
parent 827170f879
commit 019f54ab8f
10 changed files with 216 additions and 9 deletions
@@ -39,6 +39,8 @@ public class WallConfig implements WallConfigMBean {
private boolean objectCheck = true;
private boolean variantCheck = true;
private boolean mustParameterized = false;
protected final Set<String> permitFunctions = new HashSet<String>();
protected final Set<String> permitTables = new HashSet<String>();
protected final Set<String> permitSchemas = new HashSet<String>();
@@ -283,6 +285,14 @@ public class WallConfig implements WallConfigMBean {
return readOnlyTables;
}
public boolean isMustParameterized() {
return mustParameterized;
}
public void setMustParameterized(boolean mustParameterized) {
this.mustParameterized = mustParameterized;
}
public boolean isPermitObjects(String name) {
if (!objectCheck) {
return false;