public final class BatchPreparedStatementExecutor extends AbstractStatementExecutor
| 构造器和说明 |
|---|
BatchPreparedStatementExecutor(int resultSetType,
int resultSetConcurrency,
int resultSetHoldability,
boolean returnGeneratedKeys,
ShardingConnection shardingConnection) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addBatchForRouteUnits(org.apache.shardingsphere.underlying.executor.context.ExecutionContext executionContext)
Add batch for route units.
|
void |
clear()
Clear data.
|
int[] |
executeBatch()
Execute batch.
|
List<List<Object>> |
getParameterSet(Statement statement)
Get parameter sets.
|
List<Statement> |
getStatements()
Get statements.
|
void |
init(org.apache.shardingsphere.sql.parser.binder.statement.SQLStatementContext sqlStatementContext)
Initialize executor.
|
cacheStatements, executeCallback, isAccumulatepublic BatchPreparedStatementExecutor(int resultSetType,
int resultSetConcurrency,
int resultSetHoldability,
boolean returnGeneratedKeys,
ShardingConnection shardingConnection)
public void init(org.apache.shardingsphere.sql.parser.binder.statement.SQLStatementContext sqlStatementContext)
throws SQLException
sqlStatementContext - SQL statement contextSQLException - SQL exceptionpublic void addBatchForRouteUnits(org.apache.shardingsphere.underlying.executor.context.ExecutionContext executionContext)
executionContext - execution contextpublic int[] executeBatch()
throws SQLException
SQLException - SQL exceptionpublic List<List<Object>> getParameterSet(Statement statement)
statement - statementpublic void clear()
throws SQLException
AbstractStatementExecutorclear 在类中 AbstractStatementExecutorSQLException - SQL exceptionCopyright © 2020 The Apache Software Foundation. All rights reserved.