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, setQueryLoggerFactorypublic AbstractSingleQueryExecutor(StatementFactory statementFactory)
public final Object execute(DbConnection connection, Query query) throws SQLException
QueryExecutorexecute in interface QueryExecutorconnection - 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 final Object execute(DbConnection connection, Query query, AutoGeneratedKeyStrategy autoGeneratedKeyStrategy) throws SQLException
execute in interface QueryExecutorconnection - 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
SQLExceptionprotected abstract Object doExecuteQuery(DbConnection dbConnection, Statement statement, Query query, AutoGeneratedKeyStrategy autoGeneratedKeyStrategy) throws SQLException
SQLExceptionprotected void prepareQuery(Statement statement, Query query) throws SQLException
SQLExceptionCopyright © 2003–2023 MuleSoft, Inc.. All rights reserved.