Class DbClientMapperProvider

  • All Implemented Interfaces:
    MapperProvider

    public class DbClientMapperProvider
    extends Object
    implements MapperProvider
    Java Service loader service to get database types mappers.
    • Constructor Detail

      • DbClientMapperProvider

        public DbClientMapperProvider()
    • Method Detail

      • mapper

        public <SOURCE,​TARGET> Optional<Mapper<?,​?>> mapper​(Class<SOURCE> sourceClass,
                                                                        Class<TARGET> targetClass)
        Description copied from interface: MapperProvider
        Find a mapper that is capable of mapping from source to target classes.
        Specified by:
        mapper in interface MapperProvider
        Type Parameters:
        SOURCE - type of the source
        TARGET - type of the target
        Parameters:
        sourceClass - class of the source
        targetClass - class of the target
        Returns:
        a mapper that is capable of mapping (or converting) sources to targets