T - class type of return valuepublic abstract class SQLExecuteCallback<T> extends Object implements ShardingExecuteCallback<StatementExecuteUnit,T>, ShardingGroupExecuteCallback<StatementExecuteUnit,T>
| 构造器和说明 |
|---|
SQLExecuteCallback() |
| 限定符和类型 | 方法和说明 |
|---|---|
Collection<T> |
execute(Collection<StatementExecuteUnit> statementExecuteUnits,
boolean isTrunkThread,
Map<String,Object> shardingExecuteDataMap)
Execute callback.
|
T |
execute(StatementExecuteUnit statementExecuteUnit,
boolean isTrunkThread,
Map<String,Object> shardingExecuteDataMap)
Execute callback.
|
protected abstract T |
executeSQL(StatementExecuteUnit statementExecuteUnit) |
public final T execute(StatementExecuteUnit statementExecuteUnit, boolean isTrunkThread, Map<String,Object> shardingExecuteDataMap) throws SQLException
ShardingExecuteCallbackexecute 在接口中 ShardingExecuteCallback<StatementExecuteUnit,T>statementExecuteUnit - input valueisTrunkThread - is execution in trunk threadshardingExecuteDataMap - sharding execute data mapSQLException - throw when execute failurepublic final Collection<T> execute(Collection<StatementExecuteUnit> statementExecuteUnits, boolean isTrunkThread, Map<String,Object> shardingExecuteDataMap) throws SQLException
ShardingGroupExecuteCallbackexecute 在接口中 ShardingGroupExecuteCallback<StatementExecuteUnit,T>statementExecuteUnits - input valuesisTrunkThread - is execution in trunk threadshardingExecuteDataMap - sharding execute data mapSQLException - throw when execute failureprotected abstract T executeSQL(StatementExecuteUnit statementExecuteUnit) throws SQLException
SQLExceptionCopyright © 2019. All rights reserved.