Class DbClientMapperProvider

  • All Implemented Interfaces:

    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
        sourceClass - class of the source
        targetClass - class of the target
        a mapper that is capable of mapping (or converting) sources to targets