org.mule.module.db.internal.domain.executor
Interface QueryExecutor
- All Known Implementing Classes:
- AbstractSingleQueryExecutor, SelectExecutor, StoredProcedureExecutor, UpdateExecutor
public interface QueryExecutor
Executes queries against a database
execute
Object execute(DbConnection connection,
Query query)
throws SQLException
- Executes a query
- Parameters:
connection - connection to the database where the query will be executed. Non nullquery - query to execute. Non null
- Returns:
- a non null result of the query execution
- Throws:
SQLException - if a database access error occurs or this method is called on a closed connection
execute
Object execute(DbConnection connection,
Query query,
AutoGeneratedKeyStrategy autoGeneratedKeyStrategy)
throws SQLException
- Parameters:
connection - connection to the database where the query will be executed. Non nullquery - query to execute. Non nullautoGeneratedKeyStrategy - strategy used to process auto generated keys. Non null
- Returns:
- a non null result of the query execution
- Throws:
SQLException - if a database access error occurs or this method is called on a closed connection or
there is an error processing auto generated keys
Copyright © 2003–2014 MuleSoft, Inc.. All rights reserved.