T - class type of return valuepublic abstract class JDBCExecutorCallback<T> extends Object implements ExecutorCallback<JDBCExecutionUnit,T>
| 构造器和说明 |
|---|
JDBCExecutorCallback(DatabaseType databaseType,
org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement sqlStatement,
boolean isExceptionThrown,
org.apache.shardingsphere.infra.util.eventbus.EventBusContext eventBusContext) |
| 限定符和类型 | 方法和说明 |
|---|---|
Collection<T> |
execute(Collection<JDBCExecutionUnit> executionUnits,
boolean isTrunkThread,
Map<String,Object> dataMap)
Execute.
|
protected abstract T |
executeSQL(String sql,
Statement statement,
ConnectionMode connectionMode) |
protected abstract Optional<T> |
getSaneResult(org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement sqlStatement,
SQLException ex) |
public JDBCExecutorCallback(DatabaseType databaseType, org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement sqlStatement, boolean isExceptionThrown, org.apache.shardingsphere.infra.util.eventbus.EventBusContext eventBusContext)
public final Collection<T> execute(Collection<JDBCExecutionUnit> executionUnits, boolean isTrunkThread, Map<String,Object> dataMap) throws SQLException
ExecutorCallbackexecute 在接口中 ExecutorCallback<JDBCExecutionUnit,T>executionUnits - input valuesisTrunkThread - is execution in trunk threaddataMap - data mapSQLException - throw when execute failureprotected abstract T executeSQL(String sql, Statement statement, ConnectionMode connectionMode) throws SQLException
SQLExceptionprotected abstract Optional<T> getSaneResult(org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement sqlStatement, SQLException ex)
Copyright © 2022 The Apache Software Foundation. All rights reserved.