T - class type of return valuepublic abstract class SQLExecuteCallback<T> extends Object implements ShardingGroupExecuteCallback<StatementExecuteUnit,T>
| Constructor and Description |
|---|
SQLExecuteCallback() |
| Modifier and Type | Method and Description |
|---|---|
Collection<T> |
execute(Collection<StatementExecuteUnit> statementExecuteUnits,
boolean isTrunkThread,
Map<String,Object> shardingExecuteDataMap)
Execute callback.
|
protected abstract T |
executeSQL(RouteUnit routeUnit,
Statement statement,
org.apache.shardingsphere.core.constant.ConnectionMode connectionMode) |
public final Collection<T> execute(Collection<StatementExecuteUnit> statementExecuteUnits, boolean isTrunkThread, Map<String,Object> shardingExecuteDataMap) throws SQLException
ShardingGroupExecuteCallbackexecute in interface ShardingGroupExecuteCallback<StatementExecuteUnit,T>statementExecuteUnits - input valuesisTrunkThread - is execution in trunk threadshardingExecuteDataMap - sharding execute data mapSQLException - throw when execute failureprotected abstract T executeSQL(RouteUnit routeUnit, Statement statement, org.apache.shardingsphere.core.constant.ConnectionMode connectionMode) throws SQLException
SQLExceptionCopyright © 2019 The Apache Software Foundation. All rights reserved.