public final class PreparedStatementExecutorWrapper extends Object implements JDBCExecutorWrapper
| 构造器和说明 |
|---|
PreparedStatementExecutorWrapper() |
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
public org.apache.shardingsphere.core.route.SQLRouteResult route(String sql)
JDBCExecutorWrapperroute 在接口中 JDBCExecutorWrappersql - SQL to be routedpublic Statement createStatement(Connection connection, org.apache.shardingsphere.core.route.SQLUnit sqlUnit, boolean isReturnGeneratedKeys) throws SQLException
JDBCExecutorWrappercreateStatement 在接口中 JDBCExecutorWrapperconnection - connectionsqlUnit - sql unitisReturnGeneratedKeys - is return generated keysSQLException - SQL exceptionpublic boolean executeSQL(Statement statement, String sql, boolean isReturnGeneratedKeys) throws SQLException
JDBCExecutorWrapperexecuteSQL 在接口中 JDBCExecutorWrapperstatement - 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.