@Override public void query(PreparedStatementCreator preparedStatementCreator, RowCallbackHandler rowCallbackHandler) throws DataAccessException { query(preparedStatementCreator, null, newResultSetExtractor(rowCallbackHandler)); }
@Override public <T> List<T> query(String cql, RowMapper<T> rowMapper) throws DataAccessException { // noinspection ConstantConditions return query(cql, newResultSetExtractor(rowMapper)); }
@Override public <T> List<T> query(Statement statement, RowMapper<T> rowMapper) throws DataAccessException { // noinspection ConstantConditions return query(statement, newResultSetExtractor(rowMapper)); }
@Override public void query(Statement statement, RowCallbackHandler rowCallbackHandler) throws DataAccessException { query(statement, newResultSetExtractor(rowCallbackHandler)); }
@Override public void query(PreparedStatementCreator preparedStatementCreator, @Nullable PreparedStatementBinder psb, RowCallbackHandler rowCallbackHandler) throws DataAccessException { query(preparedStatementCreator, psb, newResultSetExtractor(rowCallbackHandler)); }
@Override public <T> List<T> query(PreparedStatementCreator preparedStatementCreator, RowMapper<T> rowMapper) throws DataAccessException { // noinspection ConstantConditions return query(preparedStatementCreator, null, newResultSetExtractor(rowMapper)); }
@Override public <T> List<T> query(PreparedStatementCreator preparedStatementCreator, @Nullable PreparedStatementBinder psb, RowMapper<T> rowMapper) throws DataAccessException { // noinspection ConstantConditions return query(preparedStatementCreator, psb, newResultSetExtractor(rowMapper)); }
@Override public void query(String cql, RowCallbackHandler rowCallbackHandler) throws DataAccessException { query(cql, newResultSetExtractor(rowCallbackHandler)); }
@Override public <T> List<T> query(String cql, @Nullable PreparedStatementBinder psb, RowMapper<T> rowMapper) throws DataAccessException { // noinspection ConstantConditions return query(newPreparedStatementCreator(cql), psb, newResultSetExtractor(rowMapper)); }
@Override public void query(String cql, @Nullable PreparedStatementBinder psb, RowCallbackHandler rowCallbackHandler) throws DataAccessException { query(newPreparedStatementCreator(cql), psb, newResultSetExtractor(rowCallbackHandler)); }
@Override public <T> List<T> queryForList(String cql, Class<T> elementType) throws DataAccessException { // noinspection ConstantConditions return query(cql, newResultSetExtractor(newSingleColumnRowMapper(elementType))); }
@Override public <T> List<T> queryForList(Statement statement, Class<T> elementType) throws DataAccessException { // noinspection ConstantConditions return query(statement, newResultSetExtractor(newSingleColumnRowMapper(elementType))); }
@Override public List<Map<String, Object>> queryForList(String cql) throws DataAccessException { // noinspection ConstantConditions return query(cql, newResultSetExtractor(newColumnMapRowMapper())); }
@Override public List<Map<String, Object>> queryForList(Statement statement) throws DataAccessException { // noinspection ConstantConditions return query(statement, newResultSetExtractor(newColumnMapRowMapper())); }
@Override public <T> T queryForObject(String cql, RowMapper<T> rowMapper) throws DataAccessException { return DataAccessUtils.requiredSingleResult(query(cql, newResultSetExtractor(rowMapper))); }
@Override public void query(String cql, RowCallbackHandler rowCallbackHandler, Object... args) throws DataAccessException { query(newPreparedStatementCreator(cql), newPreparedStatementBinder(args), newResultSetExtractor(rowCallbackHandler)); }
@Override public <T> List<T> query(String cql, RowMapper<T> rowMapper, Object... args) throws DataAccessException { // noinspection ConstantConditions return query(newPreparedStatementCreator(cql), newPreparedStatementBinder(args), newResultSetExtractor(rowMapper)); }
@Override public List<Map<String, Object>> queryForList(String cql, Object... args) throws DataAccessException { // noinspection ConstantConditions return query(newPreparedStatementCreator(cql), newPreparedStatementBinder(args), newResultSetExtractor(newColumnMapRowMapper())); }
@Override public <T> List<T> queryForList(String cql, Class<T> elementType, Object... args) throws DataAccessException { // noinspection ConstantConditions return query(newPreparedStatementCreator(cql), newPreparedStatementBinder(args), newResultSetExtractor(newSingleColumnRowMapper(elementType))); }
@Override public <T> T queryForObject(String cql, RowMapper<T> rowMapper, Object... args) throws DataAccessException { return DataAccessUtils.requiredSingleResult( query(newPreparedStatementCreator(cql), newPreparedStatementBinder(args), newResultSetExtractor(rowMapper, 1))); }