Class SensitiveStatementHandler

java.lang.Object
org.miaixz.bus.mapper.handler.AbstractSqlHandler
org.miaixz.bus.starter.sensitive.SensitiveStatementHandler
All Implemented Interfaces:
org.apache.ibatis.plugin.Interceptor, org.miaixz.bus.mapper.handler.SQLHandler

@Intercepts(@Signature(type=org.apache.ibatis.executor.statement.StatementHandler.class,method="prepare",args={java.sql.Connection.class,java.lang.Integer.class})) public class SensitiveStatementHandler extends org.miaixz.bus.mapper.handler.AbstractSqlHandler implements org.apache.ibatis.plugin.Interceptor
数据脱敏加密
Since:
Java 17+
Version:
6.0.6
Author:
Kimi Liu
  • Field Summary

    Fields inherited from class org.miaixz.bus.mapper.handler.AbstractSqlHandler

    DELEGATE_BOUNDSQL, DELEGATE_BOUNDSQL_SQL, DELEGATE_MAPPEDSTATEMENT, MAPPEDSTATEMENT
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    intercept(org.apache.ibatis.plugin.Invocation invocation)
     
    plugin(Object object)
     
    void
     

    Methods inherited from class org.miaixz.bus.mapper.handler.AbstractSqlHandler

    getMappedStatement, getMappedStatement, getSqlParserInfo, realTarget

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.miaixz.bus.mapper.handler.SQLHandler

    afterCompletion, postHandle, preHandle
  • Constructor Details

    • SensitiveStatementHandler

      public SensitiveStatementHandler()
  • Method Details

    • intercept

      public Object intercept(org.apache.ibatis.plugin.Invocation invocation) throws Throwable
      Specified by:
      intercept in interface org.apache.ibatis.plugin.Interceptor
      Throws:
      Throwable
    • plugin

      public Object plugin(Object object)
      Specified by:
      plugin in interface org.apache.ibatis.plugin.Interceptor
    • setProperties

      public void setProperties(Properties properties)
      Specified by:
      setProperties in interface org.apache.ibatis.plugin.Interceptor