Package 

Class KotlinMapperFactory

  • All Implemented Interfaces:
    org.jdbi.v3.core.mapper.RowMapperFactory

    
    public final class KotlinMapperFactory
     implements RowMapperFactory
                        

    This {@link RowMapperFactory} creates a new, generic {@link KotlinMapper} for every data class used. By installing this factory, any Kotlin data class will have an automatic, implicit row mapper.

    While this sounds attractive, it does not support prefix mapping which leads to problems in more complex scenarios.

    In general, registering explicit mappers using {@link Handle#registerRowMapper} is much preferred.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Optional<RowMapper<?>> build(Type type, ConfigRegistry config)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • KotlinMapperFactory

        KotlinMapperFactory()