public abstract class BaseExecutor extends ExecutorAware implements Executor
| 构造器和说明 |
|---|
BaseExecutor() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addInterceptor(Interceptor interceptor)
Add interceptor to executor
|
void |
applyCache(Cache cache)
Apply cacheManager to executor
|
protected abstract <T> T |
doExecute(PreparedStatementBuilder builder,
PreparedStatementCallback<T> action) |
protected abstract <T> void |
doExecute(PreparedStatementBuilder builder,
RowMapper<T> rowMapper,
ResultSetStream<T> stream) |
protected abstract <T> T |
doExecute(StatementCallback<T> action) |
<T> T |
execute(PreparedStatementBuilder builder,
PreparedStatementCallback<T> action) |
<T> void |
execute(PreparedStatementBuilder builder,
RowMapper<T> rowMapper,
ResultSetStream<T> stream) |
<T> T |
execute(StatementCallback<T> action)
execute statement
|
protected InterceptorChain |
getInterceptorChain() |
void |
setCache(Cache cache)
Set cache to executor
|
getCachekeyBuilder, getSqlProviderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDataSourcepublic <T> T execute(StatementCallback<T> action)
Executorpublic <T> T execute(PreparedStatementBuilder builder, PreparedStatementCallback<T> action)
public <T> void execute(PreparedStatementBuilder builder, RowMapper<T> rowMapper, ResultSetStream<T> stream)
public void addInterceptor(Interceptor interceptor)
ExecutoraddInterceptor 在接口中 Executorinterceptor - Interceptorpublic void applyCache(Cache cache)
ExecutorapplyCache 在接口中 Executorcache - CacheManagerprotected InterceptorChain getInterceptorChain()
protected abstract <T> T doExecute(StatementCallback<T> action)
protected abstract <T> T doExecute(PreparedStatementBuilder builder, PreparedStatementCallback<T> action)
protected abstract <T> void doExecute(PreparedStatementBuilder builder, RowMapper<T> rowMapper, ResultSetStream<T> stream)
Copyright © 2018. All Rights Reserved.