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 isConditionAndAlwayFalseAllow()
           
 boolean isConditionAndAlwayTrueAllow()
           
 boolean isConditionDoubleConstAllow()
           
 boolean isConditionLikeTrueAllow()
           
 boolean isConditionOpBitwseAllow()
           
 boolean isConditionOpXorAllow()
           
 boolean isConstArithmeticAllow()
           
 boolean isCreateTableAllow()
           
 boolean isDeleteAllow()
           
 boolean isDeleteWhereAlwayTrueCheck()
           
 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 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 isReplaceAllow()
           
 boolean isRollbackAllow()
           
 boolean isSchemaCheck()
           
 boolean isSelectAllColumnAllow()
           
 boolean isSelectExceptCheck()
           
 boolean isSelectHavingAlwayTrueCheck()
           
 boolean isSelectIntersectCheck()
           
 boolean isSelectIntoAllow()
           
 boolean isSelectIntoOutfileAllow()
           
 boolean isSelectMinusCheck()
           
 boolean isSelectUnionCheck()
           
 boolean isSelectWhereAlwayTrueCheck()
           
 boolean isSelelctAllow()
           
 boolean isSetAllow()
           
 boolean isShowAllow()
           
 boolean isStrictSyntaxCheck()
           
 boolean isTableCheck()
           
 boolean isTruncateAllow()
           
 boolean isUpdateAllow()
           
 boolean isUpdateWhereAlayTrueCheck()
           
 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 setConditionAndAlwayFalseAllow(boolean conditionAndAlwayFalseAllow)
           
 void setConditionAndAlwayTrueAllow(boolean conditionAndAlwayTrueAllow)
           
 void setConditionDoubleConstAllow(boolean conditionDoubleConstAllow)
           
 void setConditionLikeTrueAllow(boolean conditionLikeTrueAllow)
           
 void setConditionOpBitwseAllow(boolean conditionOpBitwseAllow)
           
 void setConditionOpXorAllow(boolean conditionOpXorAllow)
           
 void setConstArithmeticAllow(boolean constArithmeticAllow)
           
 void setCreateTableAllow(boolean createTableAllow)
           
 void setDeleteAllow(boolean deleteAllow)
           
 void setDeleteWhereAlwayTrueCheck(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 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 setReplaceAllow(boolean replaceAllow)
           
 void setRollbackAllow(boolean rollbackAllow)
           
 void setSchemaCheck(boolean schemaCheck)
           
 void setSelectAllColumnAllow(boolean selectAllColumnAllow)
           
 void setSelectExceptCheck(boolean selectExceptCheck)
           
 void setSelectHavingAlwayTrueCheck(boolean selectHavingAlwayTrueCheck)
           
 void setSelectIntersectCheck(boolean selectIntersectCheck)
           
 void setSelectIntoAllow(boolean selectIntoAllow)
           
 void setSelectIntoOutfileAllow(boolean selectIntoOutfileAllow)
           
 void setSelectMinusCheck(boolean selectMinusCheck)
           
 void setSelectUnionCheck(boolean selectUnionCheck)
           
 void setSelectWhereAlwayTrueCheck(boolean selectWhereAlwayTrueCheck)
           
 void setSelelctAllow(boolean selelctAllow)
           
 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 setUpdateWhereAlayTrueCheck(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)

isConditionAndAlwayTrueAllow

public boolean isConditionAndAlwayTrueAllow()

setConditionAndAlwayTrueAllow

public void setConditionAndAlwayTrueAllow(boolean conditionAndAlwayTrueAllow)

isConditionAndAlwayFalseAllow

public boolean isConditionAndAlwayFalseAllow()

setConditionAndAlwayFalseAllow

public void setConditionAndAlwayFalseAllow(boolean conditionAndAlwayFalseAllow)

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)

isConditionOpBitwseAllow

public boolean isConditionOpBitwseAllow()

setConditionOpBitwseAllow

public void setConditionOpBitwseAllow(boolean conditionOpBitwseAllow)

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

isSelelctAllow

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

setSelelctAllow

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

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)

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)

isSelectWhereAlwayTrueCheck

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

setSelectWhereAlwayTrueCheck

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

isSelectHavingAlwayTrueCheck

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

setSelectHavingAlwayTrueCheck

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

isDeleteAllow

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

setDeleteAllow

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

isDeleteWhereAlwayTrueCheck

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

setDeleteWhereAlwayTrueCheck

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

isDeleteWhereNoneCheck

public boolean isDeleteWhereNoneCheck()

setDeleteWhereNoneCheck

public void setDeleteWhereNoneCheck(boolean deleteWhereNoneCheck)

isUpdateAllow

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

setUpdateAllow

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

isUpdateWhereAlayTrueCheck

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

setUpdateWhereAlayTrueCheck

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

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)


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