public interface JDBCExecutorWrapper
| 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.spi.database.DatabaseType databaseType)
Route SQL.
|
org.apache.shardingsphere.core.route.SQLRouteResult route(String sql, org.apache.shardingsphere.spi.database.DatabaseType databaseType)
sql - SQL to be routeddatabaseType - database typeStatement 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.