Class WallConfig

    • Field Detail

      • denyFunctions

        protected final Set<String> denyFunctions
      • denyTables

        protected final Set<String> denyTables
      • denySchemas

        protected final Set<String> denySchemas
      • denyVariants

        protected final Set<String> denyVariants
      • denyObjects

        protected final Set<String> denyObjects
      • permitFunctions

        protected final Set<String> permitFunctions
      • permitTables

        protected final Set<String> permitTables
      • permitSchemas

        protected final Set<String> permitSchemas
      • permitVariants

        protected final Set<String> permitVariants
      • readOnlyTables

        protected final Set<String> readOnlyTables
    • Constructor Detail

      • WallConfig

        public WallConfig()
      • WallConfig

        public WallConfig​(String dir)
    • Method Detail

      • 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)
      • 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)
      • getTenantTablePattern

        public String getTenantTablePattern()
      • setTenantTablePattern

        public void setTenantTablePattern​(String tenantTablePattern)
      • getTenantColumn

        public String getTenantColumn()
      • setTenantColumn

        public void setTenantColumn​(String tenantColumn)
      • 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)
      • isDescribeAllow

        public boolean isDescribeAllow()
        allow mysql describe statement
        Returns:
        true if the describe command is allowed, false otherwise
        Since:
        0.2.10
      • setDescribeAllow

        public void setDescribeAllow​(boolean describeAllow)
        set allow mysql describe statement
        Since:
        0.2.10
      • isShowAllow

        public boolean isShowAllow()
      • setShowAllow

        public void setShowAllow​(boolean showAllow)
      • 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)
      • 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)
      • isDeleteWhereNoneCheck

        public boolean isDeleteWhereNoneCheck()
      • setDeleteWhereNoneCheck

        public void setDeleteWhereNoneCheck​(boolean deleteWhereNoneCheck)
      • isUpdateWhereNoneCheck

        public boolean isUpdateWhereNoneCheck()
      • setUpdateWhereNoneCheck

        public void setUpdateWhereNoneCheck​(boolean updateWhereNoneCheck)
      • isReplaceAllow

        public boolean isReplaceAllow()
      • setReplaceAllow

        public void setReplaceAllow​(boolean replaceAllow)
      • isSetAllow

        public boolean isSetAllow()
      • setSetAllow

        public void setSetAllow​(boolean value)
      • isStrictSyntaxCheck

        public boolean isStrictSyntaxCheck()
      • setStrictSyntaxCheck

        public void setStrictSyntaxCheck​(boolean strictSyntaxCheck)
      • isConstArithmeticAllow

        public boolean isConstArithmeticAllow()
      • setConstArithmeticAllow

        public void setConstArithmeticAllow​(boolean constArithmeticAllow)
      • 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)
      • isCallAllow

        public boolean isCallAllow()
      • setCallAllow

        public void setCallAllow​(boolean callAllow)
      • isHintAllow

        public boolean isHintAllow()
      • setHintAllow

        public void setHintAllow​(boolean hintAllow)
      • isSelectAllow

        public boolean isSelectAllow()
      • setSelectAllow

        public void setSelectAllow​(boolean selectAllow)
      • isConditionAndAlwayTrueAllow

        public boolean isConditionAndAlwayTrueAllow()
      • setConditionAndAlwayTrueAllow

        public void setConditionAndAlwayTrueAllow​(boolean conditionAndAlwayTrueAllow)
      • isConditionAndAlwayFalseAllow

        public boolean isConditionAndAlwayFalseAllow()
      • setConditionAndAlwayFalseAllow

        public void setConditionAndAlwayFalseAllow​(boolean conditionAndAlwayFalseAllow)
      • isUpdateWhereAlwayTrueCheck

        public boolean isUpdateWhereAlwayTrueCheck()
      • setUpdateWhereAlwayTrueCheck

        public void setUpdateWhereAlwayTrueCheck​(boolean updateWhereAlwayTrueCheck)
      • isConditionOpBitwiseAllow

        public boolean isConditionOpBitwiseAllow()
        Since:
        1.2.24
      • setConditionOpBitwiseAllow

        public void setConditionOpBitwiseAllow​(boolean conditionOpBitwiseAllow)
        Since:
        1.2.24
      • setInited

        public void setInited​(boolean inited)
      • isLockTableAllow

        public boolean isLockTableAllow()
      • setLockTableAllow

        public void setLockTableAllow​(boolean lockTableAllow)
      • isStartTransactionAllow

        public boolean isStartTransactionAllow()
      • setStartTransactionAllow

        public void setStartTransactionAllow​(boolean startTransactionAllow)
      • isCompleteInsertValuesCheck

        public boolean isCompleteInsertValuesCheck()
      • setCompleteInsertValuesCheck

        public void setCompleteInsertValuesCheck​(boolean completeInsertValuesCheck)
      • getInsertValuesCheckSize

        public int getInsertValuesCheckSize()
      • setInsertValuesCheckSize

        public void setInsertValuesCheckSize​(int insertValuesCheckSize)
      • isBlockAllow

        public boolean isBlockAllow()
      • setBlockAllow

        public void setBlockAllow​(boolean blockAllow)
      • getSelectLimit

        public int getSelectLimit()
      • setSelectLimit

        public void setSelectLimit​(int selectLimit)
      • configFromProperties

        public void configFromProperties​(Properties properties)
      • addUpdateCheckColumns

        public void addUpdateCheckColumns​(String columnInfo)
        Since:
        1.2.24
      • isUpdateCheckTable

        public boolean isUpdateCheckTable​(String tableName)
      • getUpdateCheckTable

        public Set<String> getUpdateCheckTable​(String tableName)