T - class type of return valuepublic abstract class JDBCExecutorCallback<T> extends Object implements ExecutorCallback<JDBCExecutionUnit,T>
| Constructor and Description |
|---|
JDBCExecutorCallback() |
| Modifier and Type | Method and Description |
|---|---|
Collection<T> |
execute(Collection<JDBCExecutionUnit> executionUnits,
boolean isTrunkThread,
Map<String,Object> dataMap)
Execute.
|
protected abstract T |
executeSQL(String sql,
Statement statement,
ConnectionMode connectionMode,
DatabaseType storageType) |
protected abstract Optional<T> |
getSaneResult(org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement sqlStatement,
SQLException ex) |
public final Collection<T> execute(Collection<JDBCExecutionUnit> executionUnits, boolean isTrunkThread, Map<String,Object> dataMap) throws SQLException
ExecutorCallbackexecute in interface 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, DatabaseType storageType) throws SQLException
SQLExceptionprotected abstract Optional<T> getSaneResult(org.apache.shardingsphere.sql.parser.sql.common.statement.SQLStatement sqlStatement, SQLException ex)
Copyright © 2023 The Apache Software Foundation. All rights reserved.