public final class DriverJDBCExecutor extends Object
| 构造器和说明 |
|---|
DriverJDBCExecutor(String schemaName,
org.apache.shardingsphere.mode.metadata.MetaDataContexts metaDataContexts,
org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutor jdbcExecutor) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
execute(org.apache.shardingsphere.infra.executor.kernel.model.ExecutionGroupContext<org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutionUnit> executionGroupContext,
org.apache.shardingsphere.infra.binder.LogicSQL logicSQL,
Collection<org.apache.shardingsphere.infra.route.context.RouteUnit> routeUnits,
org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutorCallback<Boolean> callback)
Execute SQL.
|
List<org.apache.shardingsphere.infra.executor.sql.execute.result.query.QueryResult> |
executeQuery(org.apache.shardingsphere.infra.executor.kernel.model.ExecutionGroupContext<org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutionUnit> executionGroupContext,
org.apache.shardingsphere.infra.binder.LogicSQL logicSQL,
ExecuteQueryCallback callback)
Execute query.
|
int |
executeUpdate(org.apache.shardingsphere.infra.executor.kernel.model.ExecutionGroupContext<org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutionUnit> executionGroupContext,
org.apache.shardingsphere.infra.binder.LogicSQL logicSQL,
Collection<org.apache.shardingsphere.infra.route.context.RouteUnit> routeUnits,
org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutorCallback<Integer> callback)
Execute update.
|
public DriverJDBCExecutor(String schemaName, org.apache.shardingsphere.mode.metadata.MetaDataContexts metaDataContexts, org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutor jdbcExecutor)
public List<org.apache.shardingsphere.infra.executor.sql.execute.result.query.QueryResult> executeQuery(org.apache.shardingsphere.infra.executor.kernel.model.ExecutionGroupContext<org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutionUnit> executionGroupContext, org.apache.shardingsphere.infra.binder.LogicSQL logicSQL, ExecuteQueryCallback callback) throws SQLException
executionGroupContext - execution group contextlogicSQL - logic SQLcallback - execute query callbackSQLException - SQL exceptionpublic int executeUpdate(org.apache.shardingsphere.infra.executor.kernel.model.ExecutionGroupContext<org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutionUnit> executionGroupContext,
org.apache.shardingsphere.infra.binder.LogicSQL logicSQL,
Collection<org.apache.shardingsphere.infra.route.context.RouteUnit> routeUnits,
org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutorCallback<Integer> callback)
throws SQLException
executionGroupContext - execution group contextlogicSQL - logic SQLrouteUnits - route unitscallback - JDBC executor callbackSQLException - SQL exceptionpublic boolean execute(org.apache.shardingsphere.infra.executor.kernel.model.ExecutionGroupContext<org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutionUnit> executionGroupContext,
org.apache.shardingsphere.infra.binder.LogicSQL logicSQL,
Collection<org.apache.shardingsphere.infra.route.context.RouteUnit> routeUnits,
org.apache.shardingsphere.infra.executor.sql.execute.engine.driver.jdbc.JDBCExecutorCallback<Boolean> callback)
throws SQLException
executionGroupContext - execution group contextlogicSQL - logic SQLrouteUnits - route unitscallback - JDBC executor callbackSQLException - SQL exceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.