public class SqlMonitorManager extends Object implements org.apache.ibatis.plugin.Interceptor
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
QUERY
query method name of
Executor |
static String |
UPDATE
update method name of
Executor |
| 构造器和说明 |
|---|
SqlMonitorManager() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected int |
getQueryRows(org.apache.ibatis.plugin.Invocation invocation,
Object result)
get query return rows size
|
Object |
intercept(org.apache.ibatis.plugin.Invocation invocation) |
Object |
plugin(Object target) |
String |
setParameters(org.apache.ibatis.mapping.MappedStatement mappedStatement,
org.apache.ibatis.mapping.BoundSql boundSql,
Object parameterObject)
set parameters.
|
void |
setProperties(Properties properties) |
public Object intercept(org.apache.ibatis.plugin.Invocation invocation) throws Throwable
intercept 在接口中 org.apache.ibatis.plugin.InterceptorThrowableprotected int getQueryRows(org.apache.ibatis.plugin.Invocation invocation,
Object result)
invocation - method invocationresult - query resultpublic void setProperties(Properties properties)
setProperties 在接口中 org.apache.ibatis.plugin.Interceptorpublic String setParameters(org.apache.ibatis.mapping.MappedStatement mappedStatement, org.apache.ibatis.mapping.BoundSql boundSql, Object parameterObject) throws SQLException
mappedStatement - MappedStatement instance.boundSql - BoundSql instanceparameterObject - parameter objectSQLException - in case of any SQL operation exceptionCopyright © 2018. All rights reserved.