public class MybatisSqlPrintInterceptor extends Object implements MybatisInterceptor
| 构造器和说明 |
|---|
MybatisSqlPrintInterceptor() |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
aroundQuery(ChainFilter chainFilter,
org.apache.ibatis.executor.statement.StatementHandler sh,
org.apache.ibatis.mapping.MappedStatement ms,
org.apache.ibatis.mapping.BoundSql boundSql,
Statement statement,
org.apache.ibatis.session.ResultHandler resultHandler)
环绕select拦截
|
Object |
aroundUpdate(ChainFilter chainFilter,
org.apache.ibatis.executor.statement.StatementHandler sh,
org.apache.ibatis.mapping.MappedStatement ms,
org.apache.ibatis.mapping.BoundSql boundSql,
Statement statement)
环绕update拦截
|
void |
printSql(org.apache.ibatis.mapping.BoundSql boundSql,
org.apache.ibatis.session.Configuration configuration,
String sqlId,
long time,
Object rest,
boolean isUpdate,
String error) |
Object |
printSql(ChainFilter chainFilter,
org.apache.ibatis.session.Configuration configuration,
String mpId,
org.apache.ibatis.mapping.BoundSql boundSql,
boolean isUpdate) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitresultpublic Object aroundUpdate(ChainFilter chainFilter, org.apache.ibatis.executor.statement.StatementHandler sh, org.apache.ibatis.mapping.MappedStatement ms, org.apache.ibatis.mapping.BoundSql boundSql, Statement statement)
MybatisInterceptoraroundUpdate 在接口中 MybatisInterceptorpublic Object aroundQuery(ChainFilter chainFilter, org.apache.ibatis.executor.statement.StatementHandler sh, org.apache.ibatis.mapping.MappedStatement ms, org.apache.ibatis.mapping.BoundSql boundSql, Statement statement, org.apache.ibatis.session.ResultHandler resultHandler)
MybatisInterceptoraroundQuery 在接口中 MybatisInterceptorpublic Object printSql(ChainFilter chainFilter, org.apache.ibatis.session.Configuration configuration, String mpId, org.apache.ibatis.mapping.BoundSql boundSql, boolean isUpdate)
Copyright © 2024. All rights reserved.