public final class PreparedStatementExecutor extends AbstractStatementExecutor
| 构造器和说明 |
|---|
PreparedStatementExecutor(int resultSetType,
int resultSetConcurrency,
int resultSetHoldability,
boolean returnGeneratedKeys,
ShardingConnection shardingConnection) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
execute()
Execute SQL.
|
List<org.apache.shardingsphere.underlying.executor.QueryResult> |
executeQuery()
Execute query.
|
int |
executeUpdate()
Execute update.
|
void |
init(org.apache.shardingsphere.underlying.executor.context.ExecutionContext executionContext)
Initialize executor.
|
cacheStatements, clear, executeCallback, isAccumulatepublic PreparedStatementExecutor(int resultSetType,
int resultSetConcurrency,
int resultSetHoldability,
boolean returnGeneratedKeys,
ShardingConnection shardingConnection)
public void init(org.apache.shardingsphere.underlying.executor.context.ExecutionContext executionContext)
throws SQLException
executionContext - execution contextSQLException - SQL exceptionpublic List<org.apache.shardingsphere.underlying.executor.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.