public abstract class AbstractSingleQueryExecutor extends AbstractExecutor implements QueryExecutor
logger, queryLoggerFactory, statementFactory
Constructor and Description |
---|
AbstractSingleQueryExecutor(StatementFactory statementFactory) |
Modifier and Type | Method and Description |
---|---|
protected abstract Object |
doExecuteQuery(DbConnection connection,
Statement statement,
Query query) |
protected abstract Object |
doExecuteQuery(DbConnection dbConnection,
Statement statement,
Query query,
AutoGeneratedKeyStrategy autoGeneratedKeyStrategy) |
Object |
execute(DbConnection connection,
Query query)
Executes a query
|
Object |
execute(DbConnection connection,
Query query,
AutoGeneratedKeyStrategy autoGeneratedKeyStrategy) |
protected void |
prepareQuery(Statement statement,
Query query) |
doProcessParameters, processInputParam, setQueryLoggerFactory
public AbstractSingleQueryExecutor(StatementFactory statementFactory)
public Object execute(DbConnection connection, Query query) throws SQLException
QueryExecutor
execute
in interface QueryExecutor
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 connectionpublic Object execute(DbConnection connection, Query query, AutoGeneratedKeyStrategy autoGeneratedKeyStrategy) throws SQLException
execute
in interface QueryExecutor
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 nullSQLException
- if a database access error occurs or this method is called on a closed connection or
there is an error processing auto generated keysprotected abstract Object doExecuteQuery(DbConnection connection, Statement statement, Query query) throws SQLException
SQLException
protected abstract Object doExecuteQuery(DbConnection dbConnection, Statement statement, Query query, AutoGeneratedKeyStrategy autoGeneratedKeyStrategy) throws SQLException
SQLException
protected void prepareQuery(Statement statement, Query query) throws SQLException
SQLException
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.