public interface BoundSqlInterceptor
| Modifier and Type | Interface and Description |
|---|---|
static interface |
BoundSqlInterceptor.Chain
处理器链,可以控制是否继续执行
|
static class |
BoundSqlInterceptor.Type |
| Modifier and Type | Method and Description |
|---|---|
org.apache.ibatis.mapping.BoundSql |
boundSql(BoundSqlInterceptor.Type type,
org.apache.ibatis.mapping.BoundSql boundSql,
org.apache.ibatis.cache.CacheKey cacheKey,
BoundSqlInterceptor.Chain chain)
boundsql 处理
|
org.apache.ibatis.mapping.BoundSql boundSql(BoundSqlInterceptor.Type type, org.apache.ibatis.mapping.BoundSql boundSql, org.apache.ibatis.cache.CacheKey cacheKey, BoundSqlInterceptor.Chain chain)
type - 类型boundSql - 当前类型的 boundSqlcacheKey - 缓存 keychain - 处理器链,通过 chain.doBoundSql 方法继续执行后续方法,也可以直接返回 boundSql 终止后续方法的执行Copyright © 2023. All rights reserved.