Class WallProvider

    • Field Detail

      • commentDeniedStat

        public final WallDenyStat commentDeniedStat
      • dbType

        protected DbType dbType
      • checkCount

        protected final AtomicLong checkCount
      • hardCheckCount

        protected final AtomicLong hardCheckCount
      • whiteListHitCount

        protected final AtomicLong whiteListHitCount
      • blackListHitCount

        protected final AtomicLong blackListHitCount
      • syntaxErrorCount

        protected final AtomicLong syntaxErrorCount
      • violationCount

        protected final AtomicLong violationCount
      • violationEffectRowCount

        protected final AtomicLong violationEffectRowCount
    • Method Detail

      • getName

        public String getName()
      • setName

        public void setName​(String name)
      • reset

        public void reset()
      • addUpdateCount

        public void addUpdateCount​(WallSqlStat sqlStat,
                                   long updateCount)
      • addFetchRowCount

        public void addFetchRowCount​(WallSqlStat sqlStat,
                                     long fetchRowCount)
      • getTableStatWithLowerName

        public WallTableStat getTableStatWithLowerName​(String lowerCaseName)
      • getFunctionStatWithLowerName

        public WallFunctionStat getFunctionStatWithLowerName​(String lowerCaseName)
      • getWhiteList

        public Set<String> getWhiteList()
      • getSqlList

        public Set<String> getSqlList()
      • getBlackList

        public Set<String> getBlackList()
      • clearCache

        public void clearCache()
      • clearWhiteList

        public void clearWhiteList()
      • clearBlackList

        public void clearBlackList()
      • whiteContains

        public boolean whiteContains​(String sql)
      • createWallVisitor

        public abstract WallVisitor createWallVisitor()
      • checkValid

        public boolean checkValid​(String sql)
      • incrementCommentDeniedCount

        public void incrementCommentDeniedCount()
      • checkDenyFunction

        public boolean checkDenyFunction​(String functionName)
      • checkDenySchema

        public boolean checkDenySchema​(String schemaName)
      • checkDenyTable

        public boolean checkDenyTable​(String tableName)
      • checkReadOnlyTable

        public boolean checkReadOnlyTable​(String tableName)
      • getCommentDenyStat

        public WallDenyStat getCommentDenyStat()
      • ispPrivileged

        public static boolean ispPrivileged()
      • doPrivileged

        public static <T> T doPrivileged​(PrivilegedAction<T> action)
      • setTenantValue

        public static void setTenantValue​(Object value)
      • getTenantValue

        public static Object getTenantValue()
      • getWhiteListHitCount

        public long getWhiteListHitCount()
      • getBlackListHitCount

        public long getBlackListHitCount()
      • getSyntaxErrorCount

        public long getSyntaxErrorCount()
      • getCheckCount

        public long getCheckCount()
      • getViolationCount

        public long getViolationCount()
      • getHardCheckCount

        public long getHardCheckCount()
      • getViolationEffectRowCount

        public long getViolationEffectRowCount()
      • addViolationEffectRowCount

        public void addViolationEffectRowCount​(long rowCount)
      • isWhiteListEnable

        public boolean isWhiteListEnable()
      • setWhiteListEnable

        public void setWhiteListEnable​(boolean whiteListEnable)
      • isBlackListEnable

        public boolean isBlackListEnable()
      • setBlackListEnable

        public void setBlackListEnable​(boolean blackListEnable)