类 PerformanceInterceptor

java.lang.Object
org.violet.common.mybatis.plugin.PerformanceInterceptor
所有已实现的接口:
org.apache.ibatis.plugin.Interceptor

@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
    • buildSql

      public String buildSql(Object result, org.apache.ibatis.plugin.Invocation invocation, long timing)
    • plugin

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

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

      public PerformanceInterceptor setSlowSqlMillis(long slowSqlMillis)
    • getSlowSqlMillis

      public long getSlowSqlMillis()
    • setLogSql

      public PerformanceInterceptor setLogSql(boolean logSql)
    • isLogSql

      public boolean isLogSql()
    • setLogOnlySlowSql

      public void setLogOnlySlowSql(boolean logOnlySlowSql)
    • isLogOnlySlowSql

      public boolean isLogOnlySlowSql()
    • setPrintSql

      public void setPrintSql(boolean printSql)
    • isPrintSql

      public boolean isPrintSql()