public abstract class AbstractSingleQueryExecutor extends AbstractExecutor implements QueryExecutor
LOGGER, queryLoggerFactory, statementFactory| Modifier | Constructor and Description |
|---|---|
protected |
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,
AutoGenerateKeysStrategy autoGenerateKeysStrategy) |
Object |
execute(DbConnection connection,
Query query)
Executes a query
|
Object |
execute(DbConnection connection,
Query query,
AutoGenerateKeysStrategy autoGenerateKeysStrategy) |
protected void |
prepareQuery(Statement statement,
Query query,
DbConnection connection) |
doProcessParameters, processInputParamprotected 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, AutoGenerateKeysStrategy autoGenerateKeysStrategy) throws SQLException
execute in interface QueryExecutorconnection - 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 keysprotected abstract Object doExecuteQuery(DbConnection connection, Statement statement, Query query) throws SQLException
SQLExceptionprotected abstract Object doExecuteQuery(DbConnection dbConnection, Statement statement, Query query, AutoGenerateKeysStrategy autoGenerateKeysStrategy) throws SQLException
SQLExceptionprotected void prepareQuery(Statement statement, Query query, DbConnection connection) throws SQLException
SQLExceptionCopyright © 2025. All rights reserved.