public final class BatchPreparedStatementExecutor extends AbstractStatementExecutor
| Constructor and Description |
|---|
BatchPreparedStatementExecutor(int resultSetType,
int resultSetConcurrency,
int resultSetHoldability,
boolean returnGeneratedKeys,
ShardingConnection shardingConnection) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBatchForRouteUnits(org.apache.shardingsphere.core.route.SQLRouteResult routeResult)
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.core.route.SQLRouteResult routeResult)
Initialize executor.
|
cacheStatements, executeCallback, isAccumulatepublic BatchPreparedStatementExecutor(int resultSetType,
int resultSetConcurrency,
int resultSetHoldability,
boolean returnGeneratedKeys,
ShardingConnection shardingConnection)
public void init(org.apache.shardingsphere.core.route.SQLRouteResult routeResult) throws SQLException
routeResult - route resultSQLException - SQL exceptionpublic void addBatchForRouteUnits(org.apache.shardingsphere.core.route.SQLRouteResult routeResult)
routeResult - route resultpublic int[] executeBatch()
throws SQLException
SQLException - SQL exceptionpublic List<List<Object>> getParameterSet(Statement statement)
statement - statementpublic void clear()
throws SQLException
AbstractStatementExecutorclear in class AbstractStatementExecutorSQLException - sql exceptionCopyright © 2020 The Apache Software Foundation. All rights reserved.