public final class PreparedStatementExecutor extends AbstractStatementExecutor
| 构造器和说明 |
|---|
PreparedStatementExecutor(int resultSetType,
int resultSetConcurrency,
int resultSetHoldability,
boolean returnGeneratedKeys,
ShardingConnection shardingConnection) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
execute()
Execute SQL.
|
List<QueryResult> |
executeQuery()
Execute query.
|
int |
executeUpdate()
Execute update.
|
void |
init(SQLRouteResult routeResult)
Initialize executor.
|
cacheStatements, clear, executeCallbackpublic PreparedStatementExecutor(int resultSetType,
int resultSetConcurrency,
int resultSetHoldability,
boolean returnGeneratedKeys,
ShardingConnection shardingConnection)
public void init(SQLRouteResult routeResult) throws SQLException
routeResult - route resultSQLException - SQL exceptionpublic List<QueryResult> executeQuery() throws SQLException
SQLException - SQL exceptionpublic int executeUpdate()
throws SQLException
SQLException - SQL exceptionpublic boolean execute()
throws SQLException
SQLException - SQL exceptionCopyright © 2018. All rights reserved.