question: public JdbcConnection query ( String query , StatementFactory statementFactory , ResultSetConsumer resultConsumer ) throws SQLException { Connection conn = connection ( ) ; try ( Statement statement = statementFactory . createStatement ( conn ) ) { if ( LOGGER . isTraceEnabled ( ) ) { LOGGER . trace ( "running '{}'" , query ) ; } try ( ResultSet resultSet = statement . executeQuery ( query ) ) { if ( resultConsumer != null ) { resultConsumer . accept ( resultSet ) ; } } } return this ; }
target:  Execute a SQL query.