public class DefaultExtractor<T> extends Object implements ResultSetExtractor<List<T>>
Constructor and Description |
---|
DefaultExtractor(@NotNull ResultSetRowMapper<T> mapper) |
DefaultExtractor(@NotNull ResultSetRowMapper<T> mapper,
int limit) |
Modifier and Type | Method and Description |
---|---|
@Nullable List<T> |
extractData(@NotNull ResultSet rs)
Implementations of this method must provide the processing logic (data extraction) of the entire ResultSet.
|
public DefaultExtractor(@NotNull @NotNull ResultSetRowMapper<T> mapper)
public DefaultExtractor(@NotNull @NotNull ResultSetRowMapper<T> mapper, int limit)
@Nullable public @Nullable List<T> extractData(@NotNull @NotNull ResultSet rs) throws SQLException
ResultSetExtractor
extractData
in interface ResultSetExtractor<List<T>>
rs
- the ResultSet to extract data from. Implementations don't need to close this: it will be closed by DatabaseSQLException
- if an SQLException is encountered while trying to navigate the ResultSetCopyright © 2021. All rights reserved.