public interface QueryExecutor
| Modifier and Type | Method and Description |
|---|---|
Object |
execute(DbConnection connection,
Query query)
Executes a query
|
Object |
execute(DbConnection connection,
Query query,
AutoGenerateKeysStrategy autoGenerateKeysStrategy) |
Object execute(DbConnection connection, Query query) throws SQLException
connection - connection to the database where the query will be executed. Non nullquery - query to execute. Non nullSQLException - if a database access error occurs or this method is called on a closed connectionObject execute(DbConnection connection, Query query, AutoGenerateKeysStrategy autoGenerateKeysStrategy) throws SQLException
connection - connection to the database where the query will be executed. Non nullquery - query to execute. Non nullautoGenerateKeysStrategy - strategy used to process auto generated keys. Non nullSQLException - if a database access error occurs or this method is called on a closed connection or there is an error
processing auto generated keysCopyright © 2021. All rights reserved.