public final class StatementExecutor extends AbstractStatementExecutor
| Constructor and Description |
|---|
StatementExecutor(int resultSetType,
int resultSetConcurrency,
int resultSetHoldability,
ShardingConnection shardingConnection) |
| Modifier and Type | Method and Description |
|---|---|
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<org.apache.shardingsphere.underlying.execute.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(org.apache.shardingsphere.core.route.SQLRouteResult routeResult)
Initialize executor.
|
cacheStatements, clear, executeCallback, isAccumulatepublic StatementExecutor(int resultSetType,
int resultSetConcurrency,
int resultSetHoldability,
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 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 © 2020 The Apache Software Foundation. All rights reserved.