public final class PreparedStatementExecutorWrapper extends Object implements JDBCExecutorWrapper
| Constructor and Description |
|---|
PreparedStatementExecutorWrapper() |
| Modifier and Type | Method and Description |
|---|---|
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,
org.apache.shardingsphere.core.constant.DatabaseType databaseType)
Route SQL.
|
public org.apache.shardingsphere.core.route.SQLRouteResult route(String sql, org.apache.shardingsphere.core.constant.DatabaseType databaseType)
JDBCExecutorWrapperroute in interface JDBCExecutorWrappersql - SQL to be routeddatabaseType - database typepublic Statement createStatement(Connection connection, org.apache.shardingsphere.core.route.SQLUnit sqlUnit, boolean isReturnGeneratedKeys) throws SQLException
JDBCExecutorWrappercreateStatement in interface JDBCExecutorWrapperconnection - connectionsqlUnit - sql unitisReturnGeneratedKeys - is return generated keysSQLException - SQL exceptionpublic boolean executeSQL(Statement statement, String sql, boolean isReturnGeneratedKeys) throws SQLException
JDBCExecutorWrapperexecuteSQL in interface 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.