public interface JDBCExecutorWrapper
| 限定符和类型 | 方法和说明 |
|---|---|
Statement |
createStatement(Connection connection,
org.apache.shardingsphere.core.route.SQLUnit sqlUnit,
boolean isReturnGeneratedKeys)
Create statement.
|
boolean |
executeSQL(Statement statement,
String sql,
boolean isReturnGeneratedKeys)
Execute SQL.
|
org.apache.shardingsphere.core.route.SQLRouteResult |
route(String sql)
Route SQL.
|
org.apache.shardingsphere.core.route.SQLRouteResult route(String sql)
sql - SQL to be routedStatement createStatement(Connection connection, org.apache.shardingsphere.core.route.SQLUnit sqlUnit, boolean isReturnGeneratedKeys) throws SQLException
connection - connectionsqlUnit - sql unitisReturnGeneratedKeys - is return generated keysSQLException - SQL exceptionboolean executeSQL(Statement statement, String sql, boolean isReturnGeneratedKeys) throws SQLException
statement - statementsql - SQL to be executedisReturnGeneratedKeys - is return generated keystrue is for query, false is for updateSQLException - SQL exceptionCopyright © 2019 The Apache Software Foundation. All rights reserved.