Package com.github.yulichang.interceptor
Class MPJInterceptor
java.lang.Object
com.github.yulichang.interceptor.MPJInterceptor
- All Implemented Interfaces:
org.apache.ibatis.plugin.Interceptor
@Intercepts(@Signature(type=org.apache.ibatis.executor.Executor.class,method="query",args={org.apache.ibatis.mapping.MappedStatement.class,java.lang.Object.class,org.apache.ibatis.session.RowBounds.class,org.apache.ibatis.session.ResultHandler.class}))
public class MPJInterceptor
extends Object
implements org.apache.ibatis.plugin.Interceptor
连表拦截器
用于实现动态resultType
- Author:
- yulichang
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<E> org.apache.ibatis.mapping.MappedStatementgetMappedStatement(org.apache.ibatis.mapping.MappedStatement ms, Class<?> resultType, Object ew, Map<String, Object> map) 获取MappedStatementintercept(org.apache.ibatis.plugin.Invocation invocation) voidsetProperties(Properties properties)
-
Constructor Details
-
MPJInterceptor
public MPJInterceptor()
-
-
Method Details
-
intercept
- Specified by:
interceptin interfaceorg.apache.ibatis.plugin.Interceptor- Throws:
Throwable
-
getMappedStatement
public <E> org.apache.ibatis.mapping.MappedStatement getMappedStatement(org.apache.ibatis.mapping.MappedStatement ms, Class<?> resultType, Object ew, Map<String, Object> map) 获取MappedStatement -
plugin
- Specified by:
pluginin interfaceorg.apache.ibatis.plugin.Interceptor
-
setProperties
- Specified by:
setPropertiesin interfaceorg.apache.ibatis.plugin.Interceptor
-