public class RowMapperResultSetExtractor<T> extends Object implements ResultSetExtractor<List<T>>
ResultSetExtractorinterface that delegates to a
RowMapperwhich is supposed to create an object for each row. Each object is added to the results List of this
Useful for the typical case of one object per row in the database table. The number of entries in the results will match the number of rows.
Note that a
RowMapper object is typically stateless and thus reusable.
|Constructor and Description|
|Modifier and Type||Method and Description|
Implementations must implement this method to process the entire
RowMapperwhich creates an object for each row, must not be null.
public List<T> extractData(com.datastax.oss.driver.api.core.cql.ResultSet resultSet) throws com.datastax.oss.driver.api.core.DriverException, DataAccessException
ResultSetto extract data from.
com.datastax.oss.driver.api.core.DriverException- if a
DriverExceptionis encountered getting column values or navigating (that is, there's no need to catch
DataAccessException- in case of custom exceptions
Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.