@Signature(type=org.apache.ibatis.executor.statement.StatementHandler.class,method="prepare",args={java.sql.Connection.class,java.lang.Integer.class}) @Signature(type=org.apache.ibatis.executor.Executor.class,method="update",args={org.apache.ibatis.mapping.MappedStatement.class,java.lang.Object.class}) @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}) @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,org.apache.ibatis.cache.CacheKey.class,org.apache.ibatis.mapping.BoundSql.class})
public class EncryptInterceptor
extends Object
implements org.apache.ibatis.plugin.Interceptor
| 构造器和说明 |
|---|
EncryptInterceptor(EncryptProperties mybatisEncryptProperties) |
EncryptInterceptor(EncryptProperties mybatisEncryptProperties,
IEncryptor encryptor) |
| 限定符和类型 | 方法和说明 |
|---|---|
Object |
intercept(org.apache.ibatis.plugin.Invocation invocation) |
void |
processInsertOrUpdateCommandType(org.apache.ibatis.plugin.Invocation invocation)
新增或更新类型处理
|
Object |
processSelectCommandType(org.apache.ibatis.plugin.Invocation invocation)
查询类型处理
|
public EncryptInterceptor(EncryptProperties mybatisEncryptProperties)
public EncryptInterceptor(EncryptProperties mybatisEncryptProperties, IEncryptor encryptor)
public Object intercept(org.apache.ibatis.plugin.Invocation invocation) throws Throwable
intercept 在接口中 org.apache.ibatis.plugin.InterceptorThrowablepublic void processInsertOrUpdateCommandType(org.apache.ibatis.plugin.Invocation invocation)
throws IllegalAccessException
invocation - The invocation of mybatisIllegalAccessException - The illegal access exceptionpublic Object processSelectCommandType(org.apache.ibatis.plugin.Invocation invocation) throws IllegalAccessException, InvocationTargetException
invocation - The invocation of mybatisIllegalAccessException - The illegal access exceptionInvocationTargetException - The invocation target exceptionCopyright © 2023 wuyushuo. All rights reserved.