类 MybatisLikeSqlInterceptor

  • 所有已实现的接口:
    org.apache.ibatis.plugin.Interceptor

    @Intercepts(@Signature(type=org.apache.ibatis.executor.Executor.class,method="query",args={org.apache.ibatis.mapping.MappedStatement.class,java.lang.Object.class,org.apache.ibatis.session.RowBounds.class,org.apache.ibatis.session.ResultHandler.class}))
    public class MybatisLikeSqlInterceptor
    extends Object
    implements org.apache.ibatis.plugin.Interceptor
    mybatis/mybatis-plus模糊查询语句特殊字符转义拦截器
    作者:
    lym
    • 构造器详细资料

      • MybatisLikeSqlInterceptor

        public MybatisLikeSqlInterceptor()
    • 方法详细资料

      • intercept

        public Object intercept​(org.apache.ibatis.plugin.Invocation invocation)
                         throws Throwable
        指定者:
        intercept 在接口中 org.apache.ibatis.plugin.Interceptor
        抛出:
        Throwable
      • plugin

        public Object plugin​(Object target)
        指定者:
        plugin 在接口中 org.apache.ibatis.plugin.Interceptor
      • setProperties

        public void setProperties​(Properties arg0)
        指定者:
        setProperties 在接口中 org.apache.ibatis.plugin.Interceptor
      • getKeyFields

        protected Set<String> getKeyFields​(String sql,
                                           org.apache.ibatis.mapping.BoundSql boundSql)
        获取需要替换的所有字段集合
        参数:
        sql - 完整SQL语句
        boundSql - 绑定的SQL对象
        返回:
        字段集合列表