Class DefaultQueryMappingConfiguration
java.lang.Object
org.springframework.data.jdbc.repository.config.DefaultQueryMappingConfiguration
- All Implemented Interfaces:
QueryMappingConfiguration
A
QueryMappingConfiguration
that allows for registration of RowMapper
s and
ResultSetExtractor
s via a fluent Api.- Since:
- 1.1
- Author:
- Jens Schauder, Evgeni Dimitrov
-
Field Summary
Fields inherited from interface org.springframework.data.jdbc.repository.QueryMappingConfiguration
EMPTY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> org.springframework.jdbc.core.RowMapper<? extends T>
getRowMapper
(Class<T> type) registerRowMapper
(Class<T> type, org.springframework.jdbc.core.RowMapper<? extends T> rowMapper) Registers a the givenRowMapper
as to be used for the given type.
-
Constructor Details
-
DefaultQueryMappingConfiguration
public DefaultQueryMappingConfiguration()
-
-
Method Details
-
getRowMapper
@Nullable public <T> org.springframework.jdbc.core.RowMapper<? extends T> getRowMapper(Class<T> type) - Specified by:
getRowMapper
in interfaceQueryMappingConfiguration
-
registerRowMapper
public <T> DefaultQueryMappingConfiguration registerRowMapper(Class<T> type, org.springframework.jdbc.core.RowMapper<? extends T> rowMapper) Registers a the givenRowMapper
as to be used for the given type.- Returns:
- this instance, so this can be used as a fluent interface.
-