Class DefaultRowMapperFactory
java.lang.Object
org.springframework.data.jdbc.repository.support.DefaultRowMapperFactory
- All Implemented Interfaces:
RowMapperFactory
- Direct Known Subclasses:
BeanFactoryAwareRowMapperFactory
Default implementation of
RowMapperFactory. Honors the custom mappings defined in
QueryMappingConfiguration.
This implementation is not capable of loading the RowMapper or ResultSetExtractor by reference via
corresponding methods from RowMapperFactory.
- Since:
- 4.0
- Author:
- Mikhail Polivakha
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultRowMapperFactory(JdbcAggregateOperations operations, QueryMappingConfiguration queryMappingConfiguration) -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RowMapperFactory
getResultSetExtractor, getRowMapper
-
Constructor Details
-
DefaultRowMapperFactory
public DefaultRowMapperFactory(JdbcAggregateOperations operations, QueryMappingConfiguration queryMappingConfiguration)
-
-
Method Details
-
create
Description copied from interface:RowMapperFactoryObtain aRowMapperbased on the expected return type passed in as an argument.- Specified by:
createin interfaceRowMapperFactory- Parameters:
returnedObjectType- must not benull.- Returns:
- a
RowMapperproducing instances ofresult.
-