类 PerformanceInterceptor

java.lang.Object
cn.miniants.framework.interceptor.PerformanceInterceptor
所有已实现的接口:
org.apache.ibatis.plugin.Interceptor

@Component @Signature(type=org.apache.ibatis.executor.statement.StatementHandler.class,method="query",args={java.sql.Statement.class,org.apache.ibatis.session.ResultHandler.class}) @Signature(type=org.apache.ibatis.executor.statement.StatementHandler.class,method="update",args=java.sql.Statement.class) @Signature(type=org.apache.ibatis.executor.statement.StatementHandler.class,method="batch",args=java.sql.Statement.class) public class PerformanceInterceptor extends Object implements org.apache.ibatis.plugin.Interceptor
  • 构造器详细资料

    • PerformanceInterceptor

      public PerformanceInterceptor()
  • 方法详细资料

    • 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 prop)
      指定者:
      setProperties 在接口中 org.apache.ibatis.plugin.Interceptor
    • getMaxTime

      public long getMaxTime()
    • setMaxTime

      public PerformanceInterceptor setMaxTime(long maxTime)
    • isFormat

      public boolean isFormat()
    • setFormat

      public PerformanceInterceptor setFormat(boolean format)
    • isWriteInLog

      public boolean isWriteInLog()
    • setWriteInLog

      public PerformanceInterceptor setWriteInLog(boolean writeInLog)
    • getMethodRegular

      public Method getMethodRegular(Class<?> clazz, String methodName)
    • sqlFormat

      public static String sqlFormat(String boundSql, boolean format)
      格式sql
      参数:
      boundSql -
      format -
      返回: