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


Method Summary
 Object execute(DbConnection connection, Query query)
          Executes a query
 Object execute(DbConnection connection, Query query, AutoGeneratedKeyStrategy autoGeneratedKeyStrategy)
           
 

Method Detail

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 null
query - 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 null
query - query to execute. Non null
autoGeneratedKeyStrategy - 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.