Module spring.data.jdbc
Interface AbstractJdbcQuery.RowMapperFactory
- Enclosing class:
- AbstractJdbcQuery
public static interface AbstractJdbcQuery.RowMapperFactory
Factory to create a
RowMapper for a given class.- Since:
- 2.3
-
Method Summary
Modifier and TypeMethodDescriptionCreate aRowMapperbased on the expected return type passed in as an argument.default ResultSetExtractor<Object>getResultSetExtractor(String reference) Obtain aResultSetExtractorfrom some other source, typically aBeanFactory.getRowMapper(String reference) Obtain aRowMapperfrom some other source, typically aBeanFactory.
-
Method Details
-
create
Create aRowMapperbased on the expected return type passed in as an argument.- Parameters:
result- must not benull.- Returns:
- a
RowMapperproducing instances ofresult.
-
getRowMapper
Obtain aRowMapperfrom some other source, typically aBeanFactory.- Parameters:
reference- must not benull.- Since:
- 3.4
-
getResultSetExtractor
Obtain aResultSetExtractorfrom some other source, typically aBeanFactory.- Parameters:
reference- must not benull.- Since:
- 3.4
-