public final class StatementExecutor extends AbstractStatementExecutor
| 构造器和说明 |
|---|
StatementExecutor(int resultSetType,
int resultSetConcurrency,
int resultSetHoldability,
ShardingConnection shardingConnection) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
execute()
Execute SQL.
|
boolean |
execute(int autoGeneratedKeys)
Execute SQL with auto generated keys.
|
boolean |
execute(int[] columnIndexes)
Execute SQL with column indexes.
|
boolean |
execute(String[] columnNames)
Execute SQL with column names.
|
List<QueryResult> |
executeQuery()
Execute query.
|
int |
executeUpdate()
Execute update.
|
int |
executeUpdate(int autoGeneratedKeys)
Execute update with auto generated keys.
|
int |
executeUpdate(int[] columnIndexes)
Execute update with column indexes.
|
int |
executeUpdate(String[] columnNames)
Execute update with column names.
|
void |
init(SQLRouteResult routeResult)
Initialize executor.
|
cacheStatements, clear, executeCallbackpublic StatementExecutor(int resultSetType,
int resultSetConcurrency,
int resultSetHoldability,
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 int executeUpdate(int autoGeneratedKeys)
throws SQLException
autoGeneratedKeys - auto generated keys' flagSQLException - SQL exceptionpublic int executeUpdate(int[] columnIndexes)
throws SQLException
columnIndexes - column indexesSQLException - SQL exceptionpublic int executeUpdate(String[] columnNames) throws SQLException
columnNames - column namesSQLException - SQL exceptionpublic boolean execute()
throws SQLException
SQLException - SQL exceptionpublic boolean execute(int autoGeneratedKeys)
throws SQLException
autoGeneratedKeys - auto generated keys' flagSQLException - SQL exceptionpublic boolean execute(int[] columnIndexes)
throws SQLException
columnIndexes - column indexesSQLException - SQL exceptionpublic boolean execute(String[] columnNames) throws SQLException
columnNames - column namesSQLException - SQL exceptionCopyright © 2018. All rights reserved.