类 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
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明longgetMethodRegular(Class<?> clazz, String methodName) intercept(org.apache.ibatis.plugin.Invocation invocation) booleanisFormat()booleansetFormat(boolean format) setMaxTime(long maxTime) voidsetProperties(Properties prop) setWriteInLog(boolean writeInLog) static String格式sql
-
构造器详细资料
-
PerformanceInterceptor
public PerformanceInterceptor()
-
-
方法详细资料
-
intercept
- 指定者:
intercept在接口中org.apache.ibatis.plugin.Interceptor- 抛出:
Throwable
-
plugin
- 指定者:
plugin在接口中org.apache.ibatis.plugin.Interceptor
-
setProperties
- 指定者:
setProperties在接口中org.apache.ibatis.plugin.Interceptor
-
getMaxTime
public long getMaxTime() -
setMaxTime
-
isFormat
public boolean isFormat() -
setFormat
-
isWriteInLog
public boolean isWriteInLog() -
setWriteInLog
-
getMethodRegular
-
sqlFormat
格式sql- 参数:
boundSql-format-- 返回:
-