class MovementRepository {

    public List<Movement> findForCriteria(final MovementSearchRequest movementSearchRequest,
                                          final RequestInfo requestInfo) {
        final List<Object> preparedStatementValues = new ArrayList<>();
        final String queryStr = movementQueryBuilder.getQuery(movementSearchRequest, preparedStatementValues,
                requestInfo);
        return jdbcTemplate.query(queryStr, preparedStatementValues.toArray(), movementRowMapper);
    }

}