public final class PreparedStatementExecutor extends AbstractStatementExecutor
| Constructor and Description |
|---|
PreparedStatementExecutor(int resultSetType,
int resultSetConcurrency,
int resultSetHoldability,
boolean returnGeneratedKeys,
ShardingConnection shardingConnection) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
execute()
Execute SQL.
|
List<org.apache.shardingsphere.underlying.execute.QueryResult> |
executeQuery()
Execute query.
|
int |
executeUpdate()
Execute update.
|
void |
init(org.apache.shardingsphere.core.route.SQLRouteResult routeResult)
Initialize executor.
|
cacheStatements, clear, executeCallback, isAccumulatepublic PreparedStatementExecutor(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 List<org.apache.shardingsphere.underlying.execute.QueryResult> executeQuery() throws SQLException
SQLException - SQL exceptionpublic int executeUpdate()
throws SQLException
SQLException - SQL exceptionpublic boolean execute()
throws SQLException
SQLException - SQL exceptionCopyright © 2020 The Apache Software Foundation. All rights reserved.