类 InterceptorIgnoreHelper
java.lang.Object
com.baomidou.mybatisplus.core.plugins.InterceptorIgnoreHelper
public abstract class InterceptorIgnoreHelper extends Object
- 从以下版本开始:
- 2020-07-31
- 作者:
- miemie
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 static classInterceptorIgnoreHelper.InterceptorIgnoreCache -
构造器概要
构造器 构造器 说明 InterceptorIgnoreHelper() -
方法概要
修饰符和类型 方法 说明 static voidinitSqlParserInfoCache(InterceptorIgnoreHelper.InterceptorIgnoreCache mapperAnnotation, String mapperClassName, Method method)初始化缓存static InterceptorIgnoreHelper.InterceptorIgnoreCacheinitSqlParserInfoCache(Class<?> mapperClass)初始化缓存static booleanwillIgnore(String id, Function<InterceptorIgnoreHelper.InterceptorIgnoreCache,Boolean> function)static booleanwillIgnoreBlockAttack(String id)static booleanwillIgnoreDataPermission(String id)static booleanwillIgnoreDynamicTableName(String id)static booleanwillIgnoreIllegalSql(String id)static booleanwillIgnoreOthersByKey(String id, String key)static booleanwillIgnoreTenantLine(String id)
-
构造器详细资料
-
InterceptorIgnoreHelper
public InterceptorIgnoreHelper()
-
-
方法详细资料
-
initSqlParserInfoCache
public static InterceptorIgnoreHelper.InterceptorIgnoreCache initSqlParserInfoCache(Class<?> mapperClass)初始化缓存Mapper 上 InterceptorIgnore 注解信息
- 参数:
mapperClass- Mapper Class
-
initSqlParserInfoCache
public static void initSqlParserInfoCache(InterceptorIgnoreHelper.InterceptorIgnoreCache mapperAnnotation, String mapperClassName, Method method)初始化缓存Mapper#method 上 InterceptorIgnore 注解信息
- 参数:
mapperAnnotation- Mapper Class Namemethod- Method
-
willIgnoreTenantLine
-
willIgnoreDynamicTableName
-
willIgnoreBlockAttack
-
willIgnoreIllegalSql
-
willIgnoreDataPermission
-
willIgnoreOthersByKey
-
willIgnore
public static boolean willIgnore(String id, Function<InterceptorIgnoreHelper.InterceptorIgnoreCache,Boolean> function)
-