/** * Factory for the PreparedQueryCommand command pattern object allows subclass to supply implementations * of the command class. * * @param sql statement to be executed, including optional parameter placeholders (?) * @param queryParams List of parameter values corresponding to parameter placeholders * @return a command - invoke its execute() and closeResource() methods * @see #createQueryCommand(String) */ protected AbstractQueryCommand createPreparedQueryCommand(String sql, List<Object> queryParams) { return new PreparedQueryCommand(sql, queryParams); }
/** * Factory for the PreparedQueryCommand command pattern object allows subclass to supply implementations * of the command class. * * @param sql statement to be executed, including optional parameter placeholders (?) * @param queryParams List of parameter values corresponding to parameter placeholders * @return a command - invoke its execute() and closeResource() methods * @see #createQueryCommand(String) */ protected AbstractQueryCommand createPreparedQueryCommand(String sql, List<Object> queryParams) { return new PreparedQueryCommand(sql, queryParams); }
/** * Factory for the PreparedQueryCommand command pattern object allows subclass to supply implementations * of the command class. * @see #createQueryCommand(String) * @param sql statement to be executed, including optional parameter placeholders (?) * @param queryParams List of parameter values corresponding to parameter placeholders * @return a command - invoke its execute() and closeResource() methods */ protected AbstractQueryCommand createPreparedQueryCommand(String sql, List<Object> queryParams) { return new PreparedQueryCommand(sql, queryParams); }
/** * Factory for the PreparedQueryCommand command pattern object allows subclass to supply implementations * of the command class. * * @param sql statement to be executed, including optional parameter placeholders (?) * @param queryParams List of parameter values corresponding to parameter placeholders * @return a command - invoke its execute() and closeResource() methods * @see #createQueryCommand(String) */ protected AbstractQueryCommand createPreparedQueryCommand(String sql, List<Object> queryParams) { return new PreparedQueryCommand(sql, queryParams); }