public class FilterResultSetExtractor<T> extends RowMapperResultSetExtractor<T>
RowMapperResultSetExtractor,通过实现 testRow 方法保证在处理结果中过滤空值。RowMapper| 构造器和说明 |
|---|
FilterResultSetExtractor(Predicate<T> rowTester,
RowMapper<T> rowMapper)
创建
FilterResultSetExtractor 对象 |
FilterResultSetExtractor(Predicate<T> rowTester,
RowMapper<T> rowMapper,
int rowsExpected)
创建
FilterResultSetExtractor 对象 |
FilterResultSetExtractor(RowMapper<T> rowMapper)
创建
FilterResultSetExtractor 对象 |
FilterResultSetExtractor(RowMapper<T> rowMapper,
int rowsExpected)
创建
FilterResultSetExtractor 对象 |
| 限定符和类型 | 方法和说明 |
|---|---|
Predicate<T> |
getRowTester() |
void |
setRowTester(Predicate<T> rowTester) |
protected boolean |
testRow(T mapRow) |
extractDatapublic FilterResultSetExtractor(RowMapper<T> rowMapper)
FilterResultSetExtractor 对象rowMapper - 行映射器。public FilterResultSetExtractor(Predicate<T> rowTester, RowMapper<T> rowMapper)
FilterResultSetExtractor 对象rowMapper - 行映射器。public FilterResultSetExtractor(RowMapper<T> rowMapper, int rowsExpected)
FilterResultSetExtractor 对象rowMapper - 行映射器。rowsExpected - 预期结果集大小(实际得到的结果集条目不受此参数限制)public FilterResultSetExtractor(Predicate<T> rowTester, RowMapper<T> rowMapper, int rowsExpected)
FilterResultSetExtractor 对象rowMapper - 行映射器。rowsExpected - 预期结果集大小(实际得到的结果集条目不受此参数限制)Copyright © 2020–2021. All rights reserved.