com.alibaba.druid.wall
类 WallConfig

java.lang.Object
  继承者 com.alibaba.druid.wall.WallConfig
所有已实现的接口:
WallConfigMBean

public class WallConfig
extends Object
implements WallConfigMBean


嵌套类摘要
static interface WallConfig.TenantCallBack
           
 
构造方法摘要
WallConfig()
           
WallConfig(String dir)
           
 
方法摘要
 void addReadOnlyTable(String tableName)
           
 Set<String> getDenyFunctions()
           
 Set<String> getDenyObjects()
           
 Set<String> getDenySchemas()
           
 Set<String> getDenyTables()
           
 Set<String> getDenyVariants()
           
 String getDir()
           
 Set<String> getPermitFunctions()
           
 Set<String> getPermitSchemas()
           
 Set<String> getPermitTables()
           
 Set<String> getPermitVariants()
           
 Set<String> getReadOnlyTables()
           
 WallConfig.TenantCallBack getTenantCallBack()
           
 String getTenantColumn()
           
 String getTenantTablePattern()
           
 void init()
           
 boolean isAlterTableAllow()
           
 boolean isCallAllow()
           
 boolean isCaseConditionConstAllow()
           
 boolean isCommentAllow()
           
 boolean isCommitAllow()
           
 boolean isConditionAndAlwaysFalseAllow()
           
 boolean isConditionAndAlwaysTrueAllow()
           
 boolean isConditionDoubleConstAllow()
           
 boolean isConditionLikeTrueAllow()
           
 boolean isConditionOpBitwiseAllow()
           
 boolean isConditionOpXorAllow()
           
 boolean isConstArithmeticAllow()
           
 boolean isCreateTableAllow()
           
 boolean isDeleteAllow()
           
 boolean isDeleteWhereAlwaysTrueCheck()
           
 boolean isDeleteWhereNoneCheck()
           
 boolean isDenyFunction(String name)
           
 boolean isDenyObjects(String name)
           
 boolean isDenySchema(String name)
           
 boolean isDescribeAllow()
          allow mysql describe statement
 boolean isDoPrivilegedAllow()
           
 boolean isDropTableAllow()
           
 boolean isFunctionCheck()
           
 boolean isHintAllow()
           
 boolean isInited()
           
 boolean isInsertAllow()
           
 boolean isIntersectAllow()
           
 boolean isLimitZeroAllow()
           
 boolean isMergeAllow()
           
 boolean isMetadataAllow()
           
 boolean isMinusAllow()
           
 boolean isMultiStatementAllow()
           
 boolean isMustParameterized()
           
 boolean isNoneBaseStatementAllow()
           
 boolean isObjectCheck()
           
 boolean isReadOnly(String tableName)
           
 boolean isRenameTableAllow()
           
 boolean isReplaceAllow()
           
 boolean isRollbackAllow()
           
 boolean isSchemaCheck()
           
 boolean isSelectAllColumnAllow()
           
 boolean isSelectAllow()
           
 boolean isSelectExceptCheck()
           
 boolean isSelectHavingAlwaysTrueCheck()
           
 boolean isSelectIntersectCheck()
           
 boolean isSelectIntoAllow()
           
 boolean isSelectIntoOutfileAllow()
           
 boolean isSelectMinusCheck()
           
 boolean isSelectUnionCheck()
           
 boolean isSelectWhereAlwaysTrueCheck()
           
 boolean isSetAllow()
           
 boolean isShowAllow()
           
 boolean isStrictSyntaxCheck()
           
 boolean isTableCheck()
           
 boolean isTruncateAllow()
           
 boolean isUpdateAllow()
           
 boolean isUpdateWhereAlwaysTrueCheck()
           
 boolean isUpdateWhereNoneCheck()
           
 boolean isUseAllow()
           
 boolean isVariantCheck()
           
 boolean isWrapAllow()
           
 void loadConfig(String dir)
           
 void setAlterTableAllow(boolean alterTableAllow)
           
 void setCallAllow(boolean callAllow)
           
 void setCaseConditionConstAllow(boolean caseConditionConstAllow)
           
 void setCommentAllow(boolean commentAllow)
           
 void setCommitAllow(boolean commitAllow)
           
 void setConditionAndAlwaysFalseAllow(boolean conditionAndAlwaysFalseAllow)
           
 void setConditionAndAlwaysTrueAllow(boolean conditionAndAlwaysTrueAllow)
           
 void setConditionDoubleConstAllow(boolean conditionDoubleConstAllow)
           
 void setConditionLikeTrueAllow(boolean conditionLikeTrueAllow)
           
 void setConditionOpBitwiseAllow(boolean conditionOpBitwiseAllow)
           
 void setConditionOpXorAllow(boolean conditionOpXorAllow)
           
 void setConstArithmeticAllow(boolean constArithmeticAllow)
           
 void setCreateTableAllow(boolean createTableAllow)
           
 void setDeleteAllow(boolean deleteAllow)
           
 void setDeleteWhereAlwaysTrueCheck(boolean deleteWhereAlwayTrueCheck)
           
 void setDeleteWhereNoneCheck(boolean deleteWhereNoneCheck)
           
 void setDescribeAllow(boolean describeAllow)
          set allow mysql describe statement
 void setDir(String dir)
           
 void setDoPrivilegedAllow(boolean doPrivilegedAllow)
           
 void setDropTableAllow(boolean dropTableAllow)
           
 void setFunctionCheck(boolean functionCheck)
           
 void setHintAllow(boolean hintAllow)
           
 void setInsertAllow(boolean insertAllow)
           
 void setIntersectAllow(boolean intersectAllow)
           
 void setLimitZeroAllow(boolean limitZero)
           
 void setMergeAllow(boolean mergeAllow)
           
 void setMetadataAllow(boolean metadataAllow)
           
 void setMinusAllow(boolean minusAllow)
           
 void setMultiStatementAllow(boolean multiStatementAllow)
           
 void setMustParameterized(boolean mustParameterized)
           
 void setNoneBaseStatementAllow(boolean noneBaseStatementAllow)
           
 void setObjectCheck(boolean objectCheck)
           
 void setRenameTableAllow(boolean renameTableAllow)
           
 void setReplaceAllow(boolean replaceAllow)
           
 void setRollbackAllow(boolean rollbackAllow)
           
 void setSchemaCheck(boolean schemaCheck)
           
 void setSelectAllColumnAllow(boolean selectAllColumnAllow)
           
 void setSelectAllow(boolean selelctAllow)
           
 void setSelectExceptCheck(boolean selectExceptCheck)
           
 void setSelectHavingAlwaysTrueCheck(boolean selectHavingAlwayTrueCheck)
           
 void setSelectIntersectCheck(boolean selectIntersectCheck)
           
 void setSelectIntoAllow(boolean selectIntoAllow)
           
 void setSelectIntoOutfileAllow(boolean selectIntoOutfileAllow)
           
 void setSelectMinusCheck(boolean selectMinusCheck)
           
 void setSelectUnionCheck(boolean selectUnionCheck)
           
 void setSelectWhereAlwaysTrueCheck(boolean selectWhereAlwayTrueCheck)
           
 void setSetAllow(boolean value)
           
 void setShowAllow(boolean showAllow)
           
 void setStrictSyntaxCheck(boolean strictSyntaxCheck)
           
 void setTableCheck(boolean tableCheck)
           
 void setTenantCallBack(WallConfig.TenantCallBack tenantCallBack)
           
 void setTenantColumn(String tenantColumn)
           
 void setTenantTablePattern(String tenantTablePattern)
           
 void setTruncateAllow(boolean truncateAllow)
           
 void setUpdateAllow(boolean updateAllow)
           
 void setUpdateWhereAlwaysTrueCheck(boolean updateWhereAlayTrueCheck)
           
 void setUpdateWhereNoneCheck(boolean updateWhereNoneCheck)
           
 void setUseAllow(boolean useAllow)
           
 void setVariantCheck(boolean variantCheck)
           
 void setWrapAllow(boolean wrapAllow)
           
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

WallConfig

public WallConfig()

WallConfig

public WallConfig(String dir)
方法详细信息

isCaseConditionConstAllow

public boolean isCaseConditionConstAllow()

setCaseConditionConstAllow

public void setCaseConditionConstAllow(boolean caseConditionConstAllow)

isConditionDoubleConstAllow

public boolean isConditionDoubleConstAllow()

setConditionDoubleConstAllow

public void setConditionDoubleConstAllow(boolean conditionDoubleConstAllow)

isConditionLikeTrueAllow

public boolean isConditionLikeTrueAllow()

setConditionLikeTrueAllow

public void setConditionLikeTrueAllow(boolean conditionLikeTrueAllow)

isLimitZeroAllow

public boolean isLimitZeroAllow()

setLimitZeroAllow

public void setLimitZeroAllow(boolean limitZero)

isConditionAndAlwaysTrueAllow

public boolean isConditionAndAlwaysTrueAllow()

setConditionAndAlwaysTrueAllow

public void setConditionAndAlwaysTrueAllow(boolean conditionAndAlwaysTrueAllow)

isConditionAndAlwaysFalseAllow

public boolean isConditionAndAlwaysFalseAllow()

setConditionAndAlwaysFalseAllow

public void setConditionAndAlwaysFalseAllow(boolean conditionAndAlwaysFalseAllow)

isUseAllow

public boolean isUseAllow()

setUseAllow

public void setUseAllow(boolean useAllow)

isCommitAllow

public boolean isCommitAllow()

setCommitAllow

public void setCommitAllow(boolean commitAllow)

isRollbackAllow

public boolean isRollbackAllow()

setRollbackAllow

public void setRollbackAllow(boolean rollbackAllow)

isIntersectAllow

public boolean isIntersectAllow()

setIntersectAllow

public void setIntersectAllow(boolean intersectAllow)

isMinusAllow

public boolean isMinusAllow()

setMinusAllow

public void setMinusAllow(boolean minusAllow)

isConditionOpXorAllow

public boolean isConditionOpXorAllow()

setConditionOpXorAllow

public void setConditionOpXorAllow(boolean conditionOpXorAllow)

isConditionOpBitwiseAllow

public boolean isConditionOpBitwiseAllow()

setConditionOpBitwiseAllow

public void setConditionOpBitwiseAllow(boolean conditionOpBitwiseAllow)

getTenantTablePattern

public String getTenantTablePattern()

setTenantTablePattern

public void setTenantTablePattern(String tenantTablePattern)

getTenantColumn

public String getTenantColumn()

setTenantColumn

public void setTenantColumn(String tenantColumn)

getTenantCallBack

public WallConfig.TenantCallBack getTenantCallBack()

setTenantCallBack

public void setTenantCallBack(WallConfig.TenantCallBack tenantCallBack)

isMetadataAllow

public boolean isMetadataAllow()

setMetadataAllow

public void setMetadataAllow(boolean metadataAllow)

isWrapAllow

public boolean isWrapAllow()

setWrapAllow

public void setWrapAllow(boolean wrapAllow)

isDoPrivilegedAllow

public boolean isDoPrivilegedAllow()

setDoPrivilegedAllow

public void setDoPrivilegedAllow(boolean doPrivilegedAllow)

isSelectAllColumnAllow

public boolean isSelectAllColumnAllow()

setSelectAllColumnAllow

public void setSelectAllColumnAllow(boolean selectAllColumnAllow)

isInited

public boolean isInited()
指定者:
接口 WallConfigMBean 中的 isInited

getDir

public String getDir()
指定者:
接口 WallConfigMBean 中的 getDir

setDir

public void setDir(String dir)
指定者:
接口 WallConfigMBean 中的 setDir

init

public final void init()
指定者:
接口 WallConfigMBean 中的 init

loadConfig

public void loadConfig(String dir)
指定者:
接口 WallConfigMBean 中的 loadConfig

isNoneBaseStatementAllow

public boolean isNoneBaseStatementAllow()
指定者:
接口 WallConfigMBean 中的 isNoneBaseStatementAllow

setNoneBaseStatementAllow

public void setNoneBaseStatementAllow(boolean noneBaseStatementAllow)
指定者:
接口 WallConfigMBean 中的 setNoneBaseStatementAllow

isDescribeAllow

public boolean isDescribeAllow()
allow mysql describe statement

返回:
从以下版本开始:
0.2.10

setDescribeAllow

public void setDescribeAllow(boolean describeAllow)
set allow mysql describe statement

从以下版本开始:
0.2.10

isShowAllow

public boolean isShowAllow()

setShowAllow

public void setShowAllow(boolean showAllow)

isTruncateAllow

public boolean isTruncateAllow()
指定者:
接口 WallConfigMBean 中的 isTruncateAllow

setTruncateAllow

public void setTruncateAllow(boolean truncateAllow)
指定者:
接口 WallConfigMBean 中的 setTruncateAllow

isSelectAllow

public boolean isSelectAllow()
指定者:
接口 WallConfigMBean 中的 isSelectAllow

setSelectAllow

public void setSelectAllow(boolean selelctAllow)
指定者:
接口 WallConfigMBean 中的 setSelectAllow

isSelectIntoAllow

public boolean isSelectIntoAllow()
指定者:
接口 WallConfigMBean 中的 isSelectIntoAllow

setSelectIntoAllow

public void setSelectIntoAllow(boolean selectIntoAllow)
指定者:
接口 WallConfigMBean 中的 setSelectIntoAllow

isSelectIntoOutfileAllow

public boolean isSelectIntoOutfileAllow()
指定者:
接口 WallConfigMBean 中的 isSelectIntoOutfileAllow

setSelectIntoOutfileAllow

public void setSelectIntoOutfileAllow(boolean selectIntoOutfileAllow)
指定者:
接口 WallConfigMBean 中的 setSelectIntoOutfileAllow

isCreateTableAllow

public boolean isCreateTableAllow()

setCreateTableAllow

public void setCreateTableAllow(boolean createTableAllow)

isDropTableAllow

public boolean isDropTableAllow()

setDropTableAllow

public void setDropTableAllow(boolean dropTableAllow)

isAlterTableAllow

public boolean isAlterTableAllow()

setAlterTableAllow

public void setAlterTableAllow(boolean alterTableAllow)

isRenameTableAllow

public boolean isRenameTableAllow()

setRenameTableAllow

public void setRenameTableAllow(boolean renameTableAllow)

isSelectUnionCheck

public boolean isSelectUnionCheck()
指定者:
接口 WallConfigMBean 中的 isSelectUnionCheck

setSelectUnionCheck

public void setSelectUnionCheck(boolean selectUnionCheck)
指定者:
接口 WallConfigMBean 中的 setSelectUnionCheck

isSelectMinusCheck

public boolean isSelectMinusCheck()

setSelectMinusCheck

public void setSelectMinusCheck(boolean selectMinusCheck)

isSelectExceptCheck

public boolean isSelectExceptCheck()

setSelectExceptCheck

public void setSelectExceptCheck(boolean selectExceptCheck)

isSelectIntersectCheck

public boolean isSelectIntersectCheck()

setSelectIntersectCheck

public void setSelectIntersectCheck(boolean selectIntersectCheck)

isSelectWhereAlwaysTrueCheck

public boolean isSelectWhereAlwaysTrueCheck()
指定者:
接口 WallConfigMBean 中的 isSelectWhereAlwaysTrueCheck

setSelectWhereAlwaysTrueCheck

public void setSelectWhereAlwaysTrueCheck(boolean selectWhereAlwayTrueCheck)
指定者:
接口 WallConfigMBean 中的 setSelectWhereAlwaysTrueCheck

isSelectHavingAlwaysTrueCheck

public boolean isSelectHavingAlwaysTrueCheck()
指定者:
接口 WallConfigMBean 中的 isSelectHavingAlwaysTrueCheck

setSelectHavingAlwaysTrueCheck

public void setSelectHavingAlwaysTrueCheck(boolean selectHavingAlwayTrueCheck)
指定者:
接口 WallConfigMBean 中的 setSelectHavingAlwaysTrueCheck

isDeleteAllow

public boolean isDeleteAllow()
指定者:
接口 WallConfigMBean 中的 isDeleteAllow

setDeleteAllow

public void setDeleteAllow(boolean deleteAllow)
指定者:
接口 WallConfigMBean 中的 setDeleteAllow

isDeleteWhereAlwaysTrueCheck

public boolean isDeleteWhereAlwaysTrueCheck()
指定者:
接口 WallConfigMBean 中的 isDeleteWhereAlwaysTrueCheck

setDeleteWhereAlwaysTrueCheck

public void setDeleteWhereAlwaysTrueCheck(boolean deleteWhereAlwayTrueCheck)
指定者:
接口 WallConfigMBean 中的 setDeleteWhereAlwaysTrueCheck

isDeleteWhereNoneCheck

public boolean isDeleteWhereNoneCheck()

setDeleteWhereNoneCheck

public void setDeleteWhereNoneCheck(boolean deleteWhereNoneCheck)

isUpdateAllow

public boolean isUpdateAllow()
指定者:
接口 WallConfigMBean 中的 isUpdateAllow

setUpdateAllow

public void setUpdateAllow(boolean updateAllow)
指定者:
接口 WallConfigMBean 中的 setUpdateAllow

isUpdateWhereAlwaysTrueCheck

public boolean isUpdateWhereAlwaysTrueCheck()
指定者:
接口 WallConfigMBean 中的 isUpdateWhereAlwaysTrueCheck

setUpdateWhereAlwaysTrueCheck

public void setUpdateWhereAlwaysTrueCheck(boolean updateWhereAlayTrueCheck)
指定者:
接口 WallConfigMBean 中的 setUpdateWhereAlwaysTrueCheck

isUpdateWhereNoneCheck

public boolean isUpdateWhereNoneCheck()

setUpdateWhereNoneCheck

public void setUpdateWhereNoneCheck(boolean updateWhereNoneCheck)

isInsertAllow

public boolean isInsertAllow()
指定者:
接口 WallConfigMBean 中的 isInsertAllow

setInsertAllow

public void setInsertAllow(boolean insertAllow)
指定者:
接口 WallConfigMBean 中的 setInsertAllow

isReplaceAllow

public boolean isReplaceAllow()

setReplaceAllow

public void setReplaceAllow(boolean replaceAllow)

isSetAllow

public boolean isSetAllow()

setSetAllow

public void setSetAllow(boolean value)

isMergeAllow

public boolean isMergeAllow()
指定者:
接口 WallConfigMBean 中的 isMergeAllow

setMergeAllow

public void setMergeAllow(boolean mergeAllow)
指定者:
接口 WallConfigMBean 中的 setMergeAllow

isMultiStatementAllow

public boolean isMultiStatementAllow()
指定者:
接口 WallConfigMBean 中的 isMultiStatementAllow

setMultiStatementAllow

public void setMultiStatementAllow(boolean multiStatementAllow)
指定者:
接口 WallConfigMBean 中的 setMultiStatementAllow

isSchemaCheck

public boolean isSchemaCheck()
指定者:
接口 WallConfigMBean 中的 isSchemaCheck

setSchemaCheck

public void setSchemaCheck(boolean schemaCheck)
指定者:
接口 WallConfigMBean 中的 setSchemaCheck

isTableCheck

public boolean isTableCheck()
指定者:
接口 WallConfigMBean 中的 isTableCheck

setTableCheck

public void setTableCheck(boolean tableCheck)
指定者:
接口 WallConfigMBean 中的 setTableCheck

isFunctionCheck

public boolean isFunctionCheck()
指定者:
接口 WallConfigMBean 中的 isFunctionCheck

setFunctionCheck

public void setFunctionCheck(boolean functionCheck)
指定者:
接口 WallConfigMBean 中的 setFunctionCheck

isVariantCheck

public boolean isVariantCheck()
指定者:
接口 WallConfigMBean 中的 isVariantCheck

setVariantCheck

public void setVariantCheck(boolean variantCheck)
指定者:
接口 WallConfigMBean 中的 setVariantCheck

isObjectCheck

public boolean isObjectCheck()
指定者:
接口 WallConfigMBean 中的 isObjectCheck

setObjectCheck

public void setObjectCheck(boolean objectCheck)
指定者:
接口 WallConfigMBean 中的 setObjectCheck

isCommentAllow

public boolean isCommentAllow()
指定者:
接口 WallConfigMBean 中的 isCommentAllow

setCommentAllow

public void setCommentAllow(boolean commentAllow)
指定者:
接口 WallConfigMBean 中的 setCommentAllow

isStrictSyntaxCheck

public boolean isStrictSyntaxCheck()

setStrictSyntaxCheck

public void setStrictSyntaxCheck(boolean strictSyntaxCheck)

isConstArithmeticAllow

public boolean isConstArithmeticAllow()

setConstArithmeticAllow

public void setConstArithmeticAllow(boolean constArithmeticAllow)

getDenyFunctions

public Set<String> getDenyFunctions()
指定者:
接口 WallConfigMBean 中的 getDenyFunctions

getDenyTables

public Set<String> getDenyTables()
指定者:
接口 WallConfigMBean 中的 getDenyTables

getDenySchemas

public Set<String> getDenySchemas()
指定者:
接口 WallConfigMBean 中的 getDenySchemas

getDenyVariants

public Set<String> getDenyVariants()
指定者:
接口 WallConfigMBean 中的 getDenyVariants

getDenyObjects

public Set<String> getDenyObjects()
指定者:
接口 WallConfigMBean 中的 getDenyObjects

getReadOnlyTables

public Set<String> getReadOnlyTables()
指定者:
接口 WallConfigMBean 中的 getReadOnlyTables

addReadOnlyTable

public void addReadOnlyTable(String tableName)

isReadOnly

public boolean isReadOnly(String tableName)

getPermitFunctions

public Set<String> getPermitFunctions()

getPermitTables

public Set<String> getPermitTables()

getPermitSchemas

public Set<String> getPermitSchemas()

getPermitVariants

public Set<String> getPermitVariants()

isMustParameterized

public boolean isMustParameterized()

setMustParameterized

public void setMustParameterized(boolean mustParameterized)

isDenyObjects

public boolean isDenyObjects(String name)
指定者:
接口 WallConfigMBean 中的 isDenyObjects

isDenySchema

public boolean isDenySchema(String name)
指定者:
接口 WallConfigMBean 中的 isDenySchema

isDenyFunction

public boolean isDenyFunction(String name)
指定者:
接口 WallConfigMBean 中的 isDenyFunction

isCallAllow

public boolean isCallAllow()

setCallAllow

public void setCallAllow(boolean callAllow)

isHintAllow

public boolean isHintAllow()

setHintAllow

public void setHintAllow(boolean hintAllow)


Copyright © 2013-2014 Alibaba Group. All Rights Reserved.