public abstract class ColumnEncryptInterceptor
extends com.baomidou.mybatisplus.extension.parser.JsqlParserSupport
implements com.baomidou.mybatisplus.extension.plugins.inner.InnerInterceptor
| 限定符和类型 | 字段和说明 |
|---|---|
protected Pattern |
PARAM_PAIRS_RE
变量占位符正则
|
| 构造器和说明 |
|---|
ColumnEncryptInterceptor() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
beforeGetBoundSql(org.apache.ibatis.executor.statement.StatementHandler sh) |
void |
beforePrepare(org.apache.ibatis.executor.statement.StatementHandler sh,
Connection connection,
Integer transactionTimeout) |
void |
beforeQuery(org.apache.ibatis.executor.Executor executor,
org.apache.ibatis.mapping.MappedStatement mappedStatement,
Object parameterObject,
org.apache.ibatis.session.RowBounds rowBounds,
org.apache.ibatis.session.ResultHandler resultHandler,
org.apache.ibatis.mapping.BoundSql boundSql)
如果查询条件是加密数据列,那么要将查询条件进行数据加密。
|
void |
beforeUpdate(org.apache.ibatis.executor.Executor executor,
org.apache.ibatis.mapping.MappedStatement mappedStatement,
Object parameterObject) |
abstract String |
encryptData(String data) |
parserMulti, parserSingle, processDelete, processInsert, processParser, processSelect, processUpdateprotected Pattern PARAM_PAIRS_RE
public void beforePrepare(org.apache.ibatis.executor.statement.StatementHandler sh,
Connection connection,
Integer transactionTimeout)
beforePrepare 在接口中 com.baomidou.mybatisplus.extension.plugins.inner.InnerInterceptorpublic void beforeGetBoundSql(org.apache.ibatis.executor.statement.StatementHandler sh)
beforeGetBoundSql 在接口中 com.baomidou.mybatisplus.extension.plugins.inner.InnerInterceptorpublic void beforeQuery(org.apache.ibatis.executor.Executor executor,
org.apache.ibatis.mapping.MappedStatement mappedStatement,
Object parameterObject,
org.apache.ibatis.session.RowBounds rowBounds,
org.apache.ibatis.session.ResultHandler resultHandler,
org.apache.ibatis.mapping.BoundSql boundSql)
throws SQLException
beforeQuery 在接口中 com.baomidou.mybatisplus.extension.plugins.inner.InnerInterceptorSQLExceptionpublic void beforeUpdate(org.apache.ibatis.executor.Executor executor,
org.apache.ibatis.mapping.MappedStatement mappedStatement,
Object parameterObject)
throws SQLException
beforeUpdate 在接口中 com.baomidou.mybatisplus.extension.plugins.inner.InnerInterceptorSQLExceptionCopyright © 2024. All rights reserved.