| 程序包 | 说明 |
|---|---|
| org.beetl.sql.core | |
| org.beetl.sql.ext |
| 限定符和类型 | 方法和说明 |
|---|---|
protected InterceptorContext |
BaseSQLExecutor.callInterceptorAsBefore(Map<String,Object> inputParas)
Interceptor sql执行前置拦截器 |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
Interceptor.after(InterceptorContext ctx)
如果正常执行,调用after
|
void |
Interceptor.before(InterceptorContext ctx)
在查询前执行
|
protected void |
BaseSQLExecutor.callInterceptorAsAfter(InterceptorContext ctx,
Object result)
Interceptor sql执行后置拦截器 |
protected void |
BaseSQLExecutor.callInterceptorAsException(InterceptorContext ctx,
Exception ex)
Interceptor sql执行异常拦截器 |
void |
Interceptor.exception(InterceptorContext ctx,
Exception ex)
如果异常,将调用exception
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
SimpleCacheInterceptor.after(InterceptorContext ctx) |
void |
DebugInterceptor.after(InterceptorContext ctx) |
void |
TimeStatInterceptor.after(InterceptorContext ctx) |
void |
Slf4JLogInterceptor.after(InterceptorContext ctx)
SQL正常执行后调用
|
void |
SimpleCacheInterceptor.before(InterceptorContext ctx) |
void |
DebugInterceptor.before(InterceptorContext ctx) |
void |
TimeStatInterceptor.before(InterceptorContext ctx) |
void |
Slf4JLogInterceptor.before(InterceptorContext ctx)
SQL执行前调用
|
void |
SimpleCacheInterceptor.exception(InterceptorContext ctx,
Exception ex) |
void |
DebugInterceptor.exception(InterceptorContext ctx,
Exception ex) |
void |
TimeStatInterceptor.exception(InterceptorContext ctx,
Exception ex) |
void |
Slf4JLogInterceptor.exception(InterceptorContext ctx,
Exception ex)
SQL执行异常后调用
|
Object |
SimpleCacheInterceptor.getCacheKey(InterceptorContext ctx)
Gets the cache key.
|
void |
SimpleCacheInterceptor.putCache(String ns,
Object key,
InterceptorContext ctx)
设置缓存对象
|
protected void |
DebugInterceptor.simpleOut(InterceptorContext ctx) |
protected void |
DebugInterceptor.simpleOutException(InterceptorContext ctx,
Exception ex) |
Copyright © 2022. All rights reserved.