Class DefaultQueryMappingConfiguration

java.lang.Object
org.springframework.data.jdbc.repository.config.DefaultQueryMappingConfiguration
All Implemented Interfaces:
QueryMappingConfiguration

public class DefaultQueryMappingConfiguration extends Object implements QueryMappingConfiguration
A QueryMappingConfiguration that allows for registration of RowMappers and ResultSetExtractors via a fluent Api.
Since:
1.1
Author:
Jens Schauder, Evgeni Dimitrov
  • 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 interface QueryMappingConfiguration
    • registerRowMapper

      public <T> DefaultQueryMappingConfiguration registerRowMapper(Class<T> type, org.springframework.jdbc.core.RowMapper<? extends T> rowMapper)
      Registers a the given RowMapper as to be used for the given type.
      Returns:
      this instance, so this can be used as a fluent interface.